ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik" <karth...@xius.org>
Subject Delima to use or not to use build.xml
Date Tue, 14 Feb 2006 07:04:33 GMT
Hi Form

I have a build.xml file with tags as displayed below...

 <property name="src.dir" value="${basedir}"/>
 <property name="dest.dir" value="${destdir}"/>
 <property name="TgtName" value="$(target}"/>
 
 <target name="${TgtName}" 
      <copy todir="${dest.dir}">
         <fileset dir="${src.dir}"/>
      </copy>



1)How to set the Target name for ="TgtName"

  "<property name="TgtName" value="$(target}"/>"

   in property  Using ANT API ("org.apache.tools.ant.*")

2)How to execute the argumented target using ANT API's.


Please somebody expalin to me

With regards
Karthik



  -----Original Message-----
  From: Karthik [mailto:karthikn@xius.org]
  Sent: Tuesday, February 14, 2006 10:51 AM
  To: user@ant.apache.org
  Subject: Delima to use or not to use build.xml




  Hi Form

  I am a begineer in here....

   If One uses the API's of Ant  from java  to  set/run the targets /tasks.

     "org.apache.tools.ant.*"

    then is  the "buildfile.xml"  still necessary for execution.


  Please somebody  explain.....




  with regards
  Karthik


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message