Code Search for Developers
 
 
  

build.xml from Oscill8 at Krugle


Show build.xml syntax highlighted

<?xml version="1.0" encoding="UTF-8"?>

<!--
 ****************************************************************************
 * 
 *   File: $Id: build.xml,v 1.2 2005/11/07 18:20:19 emeryconrad Exp $
 *   Author: Emery Conrad
 * 
 *   Descritption:
 *     build file for an oscill8 biospice analyzer.
 * 
 *   Oscill8 Dynamical Systems Toolset
 *   Copyright (C) 2005, Emery Conrad
 *
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *   Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 ******************************************************************************
-->

<project name="Oscill8 BioSPICE Analyzer Set" basedir="." default="nbm">

	<property name="dashboard_home" location="C:\Program Files\Bio-SPICE\Dashboard-6.0\Dashboard"/>

	<property name="version.number" value="1.16"/> 
	<property name="project.name" value="o8biospice"/>
	<property name="module.name" value="${project.name}-${version.number}"/>
	<property name="module.jar" value="${module.name}.jar"/>

	<property name="src.dir" location="${basedir}/src"/>
	<property name="build.dir" location="${basedir}/build"/>
	<property name="build.classes.dir" location="${build.dir}/classes"/>
	<property name="build.src.dir" location="${build.dir}/src"/>
	<property name="info.dir" location="${basedir}/Info"/>
	<property name="ext.dir" location="${basedir}/ext"/>
	<property name="layer.file" location="${ext.dir}/layer.xml"/>
	<property name="manifest.file" value="manifest.mf"/>

	<property name="netbeans.dir" location="${basedir}/netbeans"/>
	<property name="netbeans.module.dir" location="${netbeans.dir}/modules"/>
	<property name="netbeans.ext.dir" location="${netbeans.dir}/lib/ext"/>

	<target name="init">
		<tstamp/>
		<property name="build.number" value="${DSTAMP}-${TSTAMP}"/>
		<echo message="build.number: ${build.number}"/>
	</target>
	
	
	<!-- clean -->
	<target name="clean" description="deletes files/dirs made by this build">
		<delete dir="${build.dir}"/>
		<delete dir="${info.dir}"/>
		<delete dir="${netbeans.dir}"/>

		<!-- Delete module jar and nbm files -->
		<!-- This delete task cannot be executed if NetBeans is open and using the jars -->
		<delete verbose="true">
			<fileset dir="${basedir}">
				<patternset>
					<include name="${project.name}*.jar"/>
					<include name="${project.name}*.nbm"/>
				</patternset>
			</fileset>
		</delete>
	</target>
		
	<path id="classpath.compile">
		<pathelement path="${dashboard_home}/modules/biospice-ide.jar"/>
		<pathelement path="${dashboard_home}/lib/openide.jar"/>
	</path>
	

	<!-- compile -->
	<target name="compile" depends="init" description="Compile source code">
		<mkdir dir="${build.dir}"/>
		<mkdir dir="${build.classes.dir}"/>
		<mkdir dir="${build.src.dir}"/>

		<!-- Copy src to build.src.dir so that filtering can be performed -->
		<filter token="VERSION_NUMBER" value="${version.number}"/>
		<copy todir="${build.src.dir}" filtering="true">
			<fileset dir="${src.dir}">
				<include name="**/*.java"/>
			</fileset>
		</copy>

		<!-- Compile -->
		<javac srcdir="${build.src.dir}" destdir="${build.classes.dir}">
			<classpath refid="classpath.compile"/>
			<exclude name="**/*_T.java"/>
		</javac>
	</target>


	<!-- jars -->
	<target name="jars" depends="compile" description="Build module jar file">

		<filter token="VERSION_NUMBER" value="${version.number}"/>
		<filter token="BUILD_NUMBER" value="${build.number}"/>
		
		<copy file="${layer.file}" todir="${build.classes.dir}/com/oscill8/o8biospice" overwrite="true"/>
		
		<copy todir="${build.classes.dir}/com/oscill8/o8biospice" overwrite="true">
			<fileset dir="${ext.dir}">
				<include name="*_icon.gif"/> 
			</fileset>
		</copy>
		
		<!-- filter manifest -->
		<copy file="${ext.dir}/manifest.mf" tofile="${build.dir}/manifest.mf" overwrite="yes">
			<filterset>
				<filter token="VERSION_NUMBER" value="${version.number}"/>
				<filter token="BUILD_NUMBER" value="${build.number}"/>
			</filterset>
		</copy>

		<jar jarfile="${module.jar}" manifest="${build.dir}/manifest.mf" basedir="${build.classes.dir}"/>
	</target>


	<!-- netbeans -->
	<target name="netbeans" depends="jars" description="Prepares netbeans directory">
		<copy file="${module.jar}" todir="${netbeans.module.dir}"/>
	</target>
	

	<!-- nbm -->
	<target name="nbm" depends="netbeans" description="Makes production module file">
		<taskdef name="makenbm"
		         classname="org.netbeans.nbbuild.MakeNBM"
		         classpath="${dashboard_home}/nbantext.jar"/>
		<makenbm file="${module.name}.nbm"
		         topdir="."
		         module="${netbeans.module.dir}/${module.jar}"
		         homepage="http://oscill8.sourceforge.net"
		         distribution="updates.biospice.org/${module.name}.nbm">
		</makenbm>
	</target>
	
	<!-- reload for debugging -->
	<target name="reload" depends="jars" description="Reload module into dashboard">
		<copy file="${module.jar}" todir="C:\Documents and Settings\emery\.netbeans\biospice3.6\modules"/>
	</target>
	
</project>





See more files for this project here

Oscill8

Oscill8 is a suite of tools for analyzing dynamical systems which concentrates on understanding how the dynamical behavior depends on the parameters using bifurcation theory and reaction network theory.

Project homepage: http://sourceforge.net/projects/oscill8
Programming language(s): C,C#,C++
License: other

  ext/
    layer.xml
    manifest.mf
    o81p_icon.gif
    o82p_icon.gif
    o8plot_icon.gif
    o8sim_icon.gif
  src/
    NonJavaAnalyzer.java
    OneParameterBD.java
    Plotter.java
    Simulator.java
  build.xml