Мы обновляем приложение с Weblogi c 12.2.1.0 до 12.2.1.4 вместе с JDK с 180_65 до 180_241. Существует компонент EJB, который вызывает проблемы при компиляции кода с последней версией JDK и новыми библиотеками WL. Раньше он использовал в качестве компилятора weblogi c -ejb c, теперь я изменил его на weblogi c -app c. Когда используется задача weblogi c -ejb c, выполнение сборки занимает много времени.
Обновленный фрагмент кода:
```
weblogic destdir="${project.build.directory}"
classpath="${compile_classpath}" rebuild="false" ejbcclass="weblogic.appc" keepgenerated="false" outputdir="${project.build.outputDirectory}/ejb"
```
```
weblogic destdir="${project.build.directory}"
classpath="${compile_classpath}" rebuild="false" ejbcclass="weblogic.ejbc" keepgenerated="false" outputdir="${project.build.outputDirectory}/ejb"
**Build Error:**
Usage: java weblogic.appc [options] <ear, jar,, war or rar file or directory>
15:20:51 [ejbc]
15:20:51 [ejbc] where options include:
15:20:51 [ejbc] -help Print the standard usage message.
15:20:51 [ejbc] -version Print version information.
15:20:51 [ejbc] -output <file> Specifies an alternate output archive or
15:20:51 [ejbc] directory. If not set, output will be
15:20:51 [ejbc] placed in the source archive or directory.
15:20:51 [ejbc] -plan <file> Specifies an optional deployment plan.
15:20:51 [ejbc] -forceGeneration Force generation of EJB and JSP classes.
15:20:51 [ejbc] Without this flag the classes may not be
15:20:51 [ejbc] regenerated if it is determined to be
15:20:51 [ejbc] unnecessary.
15:20:51 [ejbc] -quiet Turns off output except for errors
15:20:51 [ejbc] -lineNumbers Add JSP line numbers to generated class
15:20:51 [ejbc] files to aid in debugging.
15:20:51 [ejbc] -library <file> Comma-separated list of libraries. Each
15:20:51 [ejbc] library may optionally set its name and
15:20:51 [ejbc] versions, if not already set in its
15:20:51 [ejbc] manifest, using the following syntax: <file>
15:20:51 [ejbc] [@name=<string>@libspecver=<version>
15:20:51 [ejbc] @libimplver=<version|string>]
15:20:51 [ejbc] -librarydir <dir> Registers all files in specified directory
15:20:51 [ejbc] as libraries.
15:20:51 [ejbc] -writeInferredDescriptors Write out the descriptors with inferred
15:20:51 [ejbc] information including annotations.
15:20:51 [ejbc] -manifest <file> Include manifest information from specified
15:20:51 [ejbc] manifest file.
15:20:51 [ejbc] -clientJarOutputDir <dir> Specifies a directory to put generated
15:20:51 [ejbc] client jars.
15:20:51 [ejbc] -keepgenerated Keep the generated .java files.
15:20:51 [ejbc] -verbose Compile with verbose output.
15:20:51 [ejbc] -classpath <path> Classpath to use.
15:20:51 [ejbc] -source <source> Source version.
15:20:51 [ejbc] -target <target> Target version.
15:20:51 [ejbc] -advanced Print advanced usage options.
15:20:51 [ejbc]
15:20:51 [ejbc] <Jul 10, 2020 3:20:51 PM EDT> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile the application. Recompile with the -verbose option for more details about the issue.>
15:20:51 [ejbc] weblogic.utils.compiler.ToolFailureException: [J2EE:160128]ERROR: Incorrect appc command. Too many arguments were given. The appc command only takes a single argument, the source file, in addition to the supported options.
15:20:51 [ejbc] at weblogic.application.compiler.flow.PrepareInputFlow.prepareInput(PrepareInputFlow.java:65)
15:20:51 [ejbc] at weblogic.application.compiler.flow.PrepareInputFlow.compile(PrepareInputFlow.java:43)
15:20:51 [ejbc] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70)
15:20:51 [ejbc] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
15:20:51 [ejbc] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
15:20:51 [ejbc] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:27)
15:20:51 [ejbc] at weblogic.application.compiler.Appc.runBody(Appc.java:202)
15:20:51 [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:159)
15:20:51 [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:116)
15:20:51 [ejbc] at weblogic.application.compiler.Appc.main(Appc.java:261)
15:20:51 [ejbc] at weblogic.appc.main(appc.java:14)
15:20:51 [ejbc] [J2EE:160128]ERROR: Incorrect appc command. Too many arguments were given. The appc command only takes a single argument, the source file, in addition to the supported options.
Could some please help me with the correct syntax for WEBLOGIC-APPC task