Ant classpath Order

How to set the classpath order in ant?

In particular, when I try to run the ant build, I need it to take the class in jar (jaxws-api.jar) instead of the same class that is in jre. I am currently setting a classpath to explicitly enable these jars, but it looks like it still picks up the jre in the first place. What I'm looking for is some type of Order / Export equivalent in eclipse in the Build Configuration menu.

Edit: I will be more explicit. I have some classes that were generated using CXF 2.1.3. They call javax.xml.ws.Service # getPort (QName, Class, WebServiceFeature ...). I am using Java version 1.6.02. This method does not exist in this class in this version. However, it exists in the jaxws version of the class (and later versions of the JRE class). When I try to make an ant construct, the JRE class is always matched first before the jaxws version. This causes my compilation to fail. How can I change my class to put the JRE for the last time?

I cannot change the version of the JRE, so please do not offer this as a fix unless it is the only possible.

+5
source share
3 answers

, bootclasspath Javac Java Ant .

ant -v, Ant.

+7

ant , .

+2

- Google API 3.0. , API GWT. :

<path id="classpath">
        <filelist>
            <file name="${build.input}/__lib__/servlet-api.jar"/>
        </filelist>
        <fileset dir="${build.input}/__lib__">
            <include name="*.jar" />
        </fileset>
        <fileset dir="${build.input}/WEB-INF/lib">
            <include name="*.jar" />
        </fileset>
    </path>

, , , , . bootclasspath , .

+1

All Articles