2 Replies Latest reply: Aug 1, 2007 4:48 AM by 807600 RSS

    arguments for a jar file in ant

    807600
      Hi,
      me again - same sort of question - not much progress!

      say I have the following in my ant build script
      <target name="run">     
                   <java jar="${PROJECT.HOME}\${HostSimulator.dir}\myJar.3.0.1.jar" fork="true"/>
               </target>
      and I want to pass the following line so it works
        <arg line="-cfg /myFoldfer/mySimulation.cfg"/>
      how do I do that properly or should I try & get the Main class from the jar??

      Thanks,

      Tri
        • 1. Re: arguments for a jar file in ant
          807600
          An example:
              <java jar="${j2ee.home}/admin.jar" fork="yes">
                <arg value="ormi://127.0.0.1"/>
                <arg value="admin"/>
                <arg value="admin"/>
                <arg value="-deploy"/>
                <arg value="-file"/>
                <arg value="${build.dir}/${pro_base}.ear"/>
                <arg value="-deploymentName"/>
                <arg value="ebank2-pro"/>
              </java>
          • 2. Re: arguments for a jar file in ant
            807600
            >
            how do I do that properly or should I try & get the
            Main class from the jar??
            Ant has one of the best set of documents of any open source project. Try looking at it sometime.