alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (anttasks.xml)

This example Jetty source code file (anttasks.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

jetty, need, rpm, rpm, source, source, to, to, zip, zip

The Jetty anttasks.xml source code

<project name="Jetty Source RPM" default="download-if-not-found" basedir=".">

    <target name="zip-if-not-found">
        <condition property="need.download">
            <available file="${project.build.directory}/rpm/SOURCES/jetty-${project.version}-src.zip" type="file" property="src.present"/>
        </condition>
        <antcall target="dontZip"/>
        <antcall target="zip"/>
    </target>

    <target name="dontZip" if="need.zip">
        <echo>No Need To Zip Source
    </target>

    <target name="zip" unless="need.zip">
      <zip destfile="${project.build.directory}/rpm/SOURCES/jetty-${project.version}-src.zip">
        <zipfileset dir="../.." prefix="jetty-${project.version}">
	  <include name="**"/>
	  <exclude name="**/.*/**"/>
	  <exclude name="**/target/**"/>
	  <exclude name="webapps/**"/>
	  <exclude name="lib/**"/>
	  <exclude name="logs/**"/>
	</zipfileset>
        <zipfileset dir="../.." prefix="jetty-${project.version}">
	  <include name="modules/jsp-api-2.1/target/glassfish/**"/>
	  <include name="modules/jsp-api-2.1/target/generated-sources/**"/>
	  <include name="modules/jsp-2.1/target/glassfish/**"/>
	  <include name="modules/jsp-2.1/target/generated-sources/**"/>
          <include name="webapps/README.TXT"/>
	  <exclude name="**/.*/**"/>
	</zipfileset>
      </zip>
    </target>
                
</project>

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty anttasks.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.