Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANT problem

Status
Not open for further replies.

WebGoat

MIS
Jul 16, 2005
85
US
Code:
to set the classpath you use this snippet


<path id="build.classpath">
    <fileset dir="${build.lib}" includes="**/*.jar"/> 
    <fileset dir="${build.classes}" /> 
  </path>
 
  <target....>
    <javac ....>
      <classpath refid="build.classpath" />
    </java>
  </target>
 
  <target....>
    <java ....>
      <classpath refid="build.classpath" />
    </java>
  </target>


my question :

question 1> are these id="build.classpath" , dir="${build.lib}" etc are fixed ?

i.e , can i write id="anything.someotherthing" or dir="onething.otherthing" ? instead of "build.classpath" or "build.lib" ?


question 2 > what is includes="**/*.jar"/ ? can you explain why there are 2 slashes ? and also those starts ?

thank you


 
ANT does come with comprehensive documentation you know. All this is explained therein.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top