12 Replies Latest reply on Sep 19, 2001 1:56 AM by aqil

    one build.xml.......for complete project.....how to???

    aqil

      i want to make a single build.xml to which i can give 2 command line argument ......1) the path of the source directory (where my class files r placed)....2)my destination directory(where it should place its jar,war,ear file).......coz command line argument will save me from hard coding the absolute path at each and every place.........for that.....i have merged the two build.xml files.....in the example documentation.......but when i run it....it gives the following error.......Plz see if there is something wrong with build.xml or its invocation or both...-;)

      ============Command Prompt===========================
      C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\InterestExampleDirectory\jbproject\inte
      restexampleproject>ant C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\InterestExampleD
      irectory\jbproject\interestexampleproject
      Buildfile: build.xml

      BUILD FAILED

      C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\InterestExampleDirectory\jbproject\inte
      restexampleproject\build.xml:46: You must specify value, location or refid with
      the name attribute

      Total time: 0 seconds
      =================build.xml=======================
      <?xml version="1.0" encoding="UTF-8" ?>
      <!-- An Ant build file for the Interest EJB example
      -->



      <?xml version="1.0" encoding="UTF-8" ?>


      <!--
      Ant build file for the documentation tutorial code
      Writer of a chapter with an example have to include a foroward
      to their build file. This latest build file suppose arguments
      sets here :
      src.dir : Directory where the source are : manual\src\examples
      build.dir : Base directory where to store generated files (class/ejb/war/...)
      classpath : Classpath used to make any compilation (set up here by verifing
      which version of JBoss is used.
      -->




      <!-- Override with your JBoss server dist location if the JBOSS_DIST env var is not set -->

      <!-- Override with your web server servlet jar location. The default assumes that
      JBOSS_DIST points to a JBoss/Tomcat bundle distribution
      -->



















































      <!-- Tutorial ejb jar -->

















      <!-- Tutorial web app war -->














      <!-- Create the tutorial ear that uses the properties based security info -->