ѕтƒ
ѕтƒ

Reputation: 3647

Not giving same class files

i used an ant build file to create a jar for my project.After the classes i got from build was not the same as of the classes of jar file exporting from eclipse. because of this the jar from build is not working. Here is my build.xml file

 <javac destdir="${build.dir}" srcdir="${src.dir}" source="1.5" target="1.5" >
        <compilerarg value="-Xlint:unchecked"/>
        <classpath refid="master-classpath"/>
 </javac>

Upvotes: 0

Views: 49

Answers (1)

Aksel Willgert
Aksel Willgert

Reputation: 11537

Set target version in your ant-script. Something like:

<javac destdir="${build.dir}" srcdir="${src.dir}" source="1.6" target="1.6" >

Upvotes: 1

Related Questions