I have added a target to generate classes out of Client.g for the command line client. You will have to have ANTLR in the class path, otherwise you will get a warning and the classes are not regenerated.

This is not very elegant, but it works.

Oliver

[EMAIL PROTECTED] wrote:

ozeigermann 2004/04/06 07:07:41

Modified: webdavclient build.xml
Log:
Added code to generate classes from Client.g
Revision Changes Path
1.8 +12 -1 jakarta-slide/webdavclient/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/webdavclient/build.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- build.xml 6 Apr 2004 13:18:14 -0000 1.7
+++ build.xml 6 Apr 2004 14:07:41 -0000 1.8
@@ -110,7 +110,18 @@
<!-- =================================================================== -->
<!-- Build Slide commandline client -->
<!-- =================================================================== -->
- <target name="build-cmd" depends="prepare-build-cmd,build-clientlib" + <target name="detect.antlr">
+ <available property="antlr.present" classname="antlr.Tool"/>
+ </target>
+ <target name="warn.if.no.antlr" unless="antlr.present">
+ <echo level="warning" message="Missing antlr in classpath"/>
+ </target>
+ <target name="generate" depends="warn.if.no.antlr" if="antlr.present">
+ <echo message="Generating classes from Client.g"/>
+ <antlr target="commandline/src/java/org/apache/webdav/cmd/Client.g" + outputdirectory="commandline/src/java/org/apache/webdav/cmd"/>
+ </target>
+ <target name="build-cmd" depends="prepare-build-cmd,build-clientlib,detect.antlr,generate" description="Build the commandline client">
<echo message="Building Slide commandline client"/>
<mkdir dir="${cmd.build}/src"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to