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

Friki example source code file (build-whole-jar.xml)

This example Friki source code file (build-whole-jar.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 - Friki tags/keywords

app, app

The Friki build-whole-jar.xml source code

<project default="build-whole-jar">
  
  <property name="dest.dir" value="build/lib"/>
  <property name="source.dir" value="build/delivery/classes"/>
  <property name="includes.pattern" value="**/*"/>
  <property name="jarfile.name" value="${APP}.jar"/>

  <target name="init-build-whole-jar">
    <mkdir dir="${dest.dir}"/>
    <available file="_lib" property="exists.lib"/>
  </target>
  
  <target name="copy-libs" depends="init-build-whole-jar" if="exists.lib">
    <copy todir="${dest.dir}" filtering="off" overwrite="true">
      <fileset dir="_lib">
        <include name="*.jar"/>
      </fileset>
    </copy>
  </target>
  
  <target name='build-whole-jar'>
    <antcall target="copy-libs"/>
    <jar jarfile="${dest.dir}/${jarfile.name}" includes="${includes.pattern}" basedir="${source.dir}"/>
  </target>

</project>

Other Friki examples (source code examples)

Here is a short list of links related to this Friki build-whole-jar.xml source code file:

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.