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

What this is

This file 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.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<project name="Build Launching Support JAR" default="build" basedir="..">

	<target name="build" description="Cleans, builds and refreshes" depends="clean, lib/launchingsupport.jar"/>

	<target name="init" depends="properties">
		<property name="temp.folder" value="${basedir}/temp.folder"/>
		<property name="build.result.folder" value="${basedir}"/>
	</target>

	<target name="properties" if="eclipse.running">
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
	</target>
	
	<target name="lib/launchingsupport.jar" description= "Creates the launchingsupport.jar" depends="init">
		<property name="destdir" value="${temp.folder}/lib/launchingsupport.jar.bin"/>
		<delete dir="${destdir}"/>
		<mkdir dir="${destdir}"/>
		<!-- compile the source code -->
		<javac target="1.2" source="1.3" destdir="${destdir}" failonerror="false" verbose="false" debug="on" includeJavaRuntime= "yes" includeAntRuntime="no"
			 classpath="">
			<src path="support/"/>
		</javac>
		<mkdir dir="${build.result.folder}/lib"/>
		<jar destfile="${build.result.folder}/lib/launchingsupport.jar" basedir="${destdir}"/>
		<delete dir="${temp.folder}"/>
	</target>

	<target name="clean" description="Deletes previous build remnants" depends="init">
		<delete file="${build.result.folder}/lib/launchingsupport.jar"/>
		<delete dir="${temp.folder}"/>
	</target>
</project>
... 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.