RE: Ant can't find -factorypath option
Martin Gainty <[email protected]>
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 29 Jan 2015 15:47:34 +0000 > From: [email protected] > To: [email protected] > Subject: Ant can't find -factorypath option > > Hi, > > I am using Apache Ant(TM) version 1.9.3 and during compilation I get the > error below. It seems that ant does not recognize the option > |-factorypath|. Is there a way to solve this? > > | [mkdir] Skipping /home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/syscall/java because it already exists. > [exec] Current OS is Linux > [exec] Executing 'apt' with arguments: > [exec] '-factorypath' > [exec] '/home/vagrant/Programs/jikesrvm-3.0.0/target/tasks/classes' > [exec] '-nocompile' > [exec] '-factory' > [exec] 'org.jikesrvm.tools.apt.SysCallProcessorFactory' > [exec] '-classpath' > [exec] '/home/vagrant/Programs/jikesrvm-3.0.0/target/tasks/classes:/home/vagrant/Programs/jikesrvm-3.0.0/target/vmmagic-stub/classes:/home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/classes' > [exec] '-s' > [exec] '/home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/syscall/java' > [exec] '/home/vagrant/Programs/jikesrvm-3.0.0/rvm/src/org/jikesrvm/runtime/SysCall.java' > [exec] > [exec] The ' characters around the executable and arguments are > [exec] not part of the command. > Execute:Java13CommandLauncher: Executing 'apt' with arguments: > '-factorypath' > '/home/vagrant/Programs/jikesrvm-3.0.0/target/tasks/classes' > '-nocompile' > '-factory' > 'org.jikesrvm.tools.apt.SysCallProcessorFactory' > '-classpath' > '/home/vagrant/Programs/jikesrvm-3.0.0/target/tasks/classes:/home/vagrant/Programs/jikesrvm-3.0.0/target/vmmagic-stub/classes:/home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/classes' > '-s' > '/home/vagrant/Programs/jikesrvm-3.0.0/target/FastAdaptiveGenMS_airavat_ia32-linux/syscall/java' > '/home/vagrant/Programs/jikesrvm-3.0.0/rvm/src/org/jikesrvm/runtime/SysCall.java' > > The ' characters around the executable and arguments are > not part of the command. > [exec] E: Command line option 'f' [from -factorypath] is not known. I think you need to define a path and then use the id to reference that path..here is the doc: factorypath: The reference id of the path used to find the classes needed by the AnnotationProcessorFactory (and the location of the factory itself). This represents the -factorypath flag on the Apt executable. so if the -factorypath="factory.path" then before implementing -factorypath path could look something like <path id="factory.path"> <path refid="common.classpath"/> <!-- include classes from another predefined path --> <pathelement location="${ant.home}/lib/ant.jar"/> <!-- or include the specific location to a specific jar --> <fileset dir="."> <!-- path can include a directory --> <exclude name="build/**/*.jar"/> <!-- include jars/classes that we need --> <include name="**/lib/*.jar"/> <!-- exclude jars/classes that we dont need --> </fileset> </path> > >