ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (PS, GNF, Contractor)" <Luis.Cone...@gnf.com>
Subject RE: Parameter passed to target (take2)
Date Mon, 12 Jan 2004 17:43:18 GMT
Notice the changes in <antcall> calls

<project name="osis" default="build">

 
<!--=======================================================================-
->
  <property name="osis.shema" value="osisCore.1.1.1.xsd"/>  <!-- This should
be redefined -->
  <property name="osis.jar" value="jsword-osis.jar"/>               <!--
This should be redefined -->
  
<<snip>>

  <target name="xjc" description="Creates java OSIS source files (XJC)">
    <echo message="Build java source files for ${osis.shema}"/>
    <delete dir="${osis.src}"/>
    <mkdir dir="${osis.src}"/>
    <java fork="true" classname="com.sun.tools.xjc.Driver">
      <arg value="-d"/>
      <arg value="${osis.src}"/>
      <arg value="-p"/>
      <arg value="org.crosswire.jsword.osis"/>
      <arg value="${osis.shema.base}/${osis.shema}"/>
      <classpath>
        <fileset dir="${libs.jar}" includes="**/*.jar"
excludes="**/jsword-osi*.jar" />
      </classpath>
    </java>
  </target>


  <target name="osis_1.1.1">
      <antcall target="xjc">
          <param name="osis.shema" value="osisCore.1.1.1.xsd"/>
	    <param name="osis.jar" value="jsword-osis-1.1.1.jar"/>
	</antcall>
  </target>

  <target name="osis_1.1">
      <antcall target="xjc">
          <param name="osis.shema" value="osisCore.1.1.xsd"/>
	    <param name="osis.jar" value="jsword-osis-1.1.jar"/> 
	</antcall>
  </target>

</project>






> --------------------------------------------------------------------------
> ----
> Aleksander Rozman - Andy                           Hermes SoftLab
>                                                    Maribor Office,
> Slovenia
> arozman@hermes.si                                  ASD:NIS
> ICQ: 4911125                                       +386 2 4508-946
> --------------------------------------------------------------------------
> ----
>         Experience is what you get, when you don't get what you want !
> --------------------------------------------------------------------------
> ----
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


------------
HTH
-Luis

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