Review Board 1.7.22


ZOOKEEPER-1184 jute generated files are not being cleaned up via "ant clean"

Review Request #1916 - Created Sept. 15, 2011 and submitted

Thomas Koch
ZOOKEEPER-1184
Reviewers
zookeeper
zookeeper-git
.

 

Diff revision 1 (Latest)

  1. build.xml: Loading...
build.xml
Revision 147b51b New Change
[20] 233 lines
[+20]
234
        </tstamp>
234
        </tstamp>
235
    </target>
235
    </target>
236
    
236
    
237
	
237
	
238
    <target name="generate_jute_parser" depends="init,ivy-retrieve">
238
    <target name="generate_jute_parser" depends="init,ivy-retrieve">
239
      <property name="jute_javacc.dir" value="${java.src.dir}/org/apache/jute/compiler/generated" />
239
      <property name="jute_javacc.dir" value="${build.dir}/jute_compiler" />

    
   
240
      <property name="jute_javacc.packagedir" value="/org/apache/jute/compiler/generated" />

    
   
241
      <mkdir dir="${jute_javacc.dir}${jute_javacc.packagedir}"/>
240
      <!-- the javacc task expects a "javacc.jar" file... -->
242
      <!-- the javacc task expects a "javacc.jar" file... -->
241
      <ivy:artifactproperty name="[artifact].revision" value="[revision]" />
243
      <ivy:artifactproperty name="[artifact].revision" value="[revision]" />
242
      <move file="${ivy.lib}/javacc-${javacc.revision}.jar" tofile="${ivy.lib}/javacc.jar" failonerror="false"/>
244
      <move file="${ivy.lib}/javacc-${javacc.revision}.jar" tofile="${ivy.lib}/javacc.jar" failonerror="false"/>
243
      <javacc
245
      <javacc
244
          target="${jute_javacc.dir}/rcc.jj"
246
          target="${java.src.dir}${jute_javacc.packagedir}/rcc.jj"
245
          outputdirectory="${jute_javacc.dir}/"
247
          outputdirectory="${jute_javacc.dir}${jute_javacc.packagedir}/"
246
          javacchome="${ivy.lib}"
248
          javacchome="${ivy.lib}"
247
          />
249
          />
248
    </target>
250
    </target>
249
     
251
     
250
    <target name="jute" depends="generate_jute_parser">
252
    <target name="jute" depends="generate_jute_parser">
251
        <javac srcdir="${java.src.dir}" destdir="${build.classes}" includeantruntime="false"
253
        <javac srcdir="${jute_javacc.dir}" destdir="${build.classes}" includeantruntime="false"
252
            target="${javac.target}" source="${javac.source}"
254
            target="${javac.target}" source="${javac.source}"
253
            includes="org/apache/jute/**" debug="on" />
255
            includes="org/apache/jute/**" debug="on" 

    
   
256
        >

    
   
257
          <src path="${java.src.dir}" />

    
   
258
          <src path="${jute_javacc.dir}" />

    
   
259
        </javac>
254
    </target>
260
    </target>
255

    
   
261

   
256
    <target name="compile_jute_uptodate">
262
    <target name="compile_jute_uptodate">
257
        <uptodate property="juteBuild.notRequired"
263
        <uptodate property="juteBuild.notRequired"
258
                  srcfile="${jute.file}"
264
                  srcfile="${jute.file}"
[+20] [20] 7 lines
[+20]
266
            <arg value="-l" />
272
            <arg value="-l" />
267
            <arg value="java" />
273
            <arg value="java" />
268
            <arg value="../../zookeeper.jute" /> 
274
            <arg value="../../zookeeper.jute" /> 
269
            <classpath>
275
            <classpath>
270
                <pathelement path="${build.classes}" />
276
                <pathelement path="${build.classes}" />

    
   
277
                <pathelement path="${jute_javacc.dir}" />
271
            </classpath>
278
            </classpath>
272
        </java>
279
        </java>
273
        
280
        
274
        <java classname="org.apache.jute.compiler.generated.Rcc" fork="true" dir="${csrc_generated.dir}">
281
        <java classname="org.apache.jute.compiler.generated.Rcc" fork="true" dir="${csrc_generated.dir}">
275
            <arg value="-l" />
282
            <arg value="-l" />
[+20] [20] 1333 lines
  1. build.xml: Loading...