[Nice-commit] Nice/src/nice/tools/ant Nicec.java,1.16,1.17
Brought to you by:
bonniot
|
From: <ag...@us...> - 2003-03-14 12:37:45
|
Update of /cvsroot/nice/Nice/src/nice/tools/ant
In directory sc8-pr-cvs1:/tmp/cvs-serv11568/src/nice/tools/ant
Modified Files:
Nicec.java
Log Message:
Added comment and example on nested classpath usage
Index: Nicec.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/ant/Nicec.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Nicec.java 13 Mar 2003 16:38:21 -0000 1.16
--- Nicec.java 14 Mar 2003 12:37:42 -0000 1.17
***************
*** 86,94 ****
</tr>
</table>
<h3>Examples</h3>
! <pre><taskdef name="nicec" classname="nice.tools.ant.Nicec"/><br>
! <target name="nice-compiler"><br>
! <nicec package="test" runtime="../share/java/nice.jar"/><br>
! </target></pre>
--- 86,115 ----
</tr>
</table>
+
+ <h4>classpath</h4>
+ <p><code>Nicec</code>'s <i>classpath</i> attribute is a PATH like structure and can also be set via a nested
+ <i>classpath</i> element. This is very reasonable if you want to make your build script's pathes platform
+ independent. </p>
+ <h5>Example</h5>
+ <pre>
+ <nicec package="test" >
+ <classpath>
+ <pathelement location="\test.jar"/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </pre>
+ <p>It is possible to use the <i>classpath</i> attribute together with the
+ <i>classpath<i> nested tag. In this case the result is a concatenated path.</p>
+ <p>It is highly recommended to use the nested version!<p>
+
+
<h3>Examples</h3>
! <pre>
! <taskdef name="nicec" classname="nice.tools.ant.Nicec"/>
! <target name="nice-compiler">
! <nicec package="test" runtime="../share/java/nice.jar"/>
! </target>
! </pre>
|