--- /dev/null
+\r
+<project name="Services" default="dist" basedir=".">\r
+ <description>\r
+ collectionspace services\r
+ </description>\r
+ <!-- set global properties for this build -->\r
+ <property file="build.properties" />\r
+ <property name="src" location="src"/>\r
+ <property name="build" location="build"/>\r
+ <property name="dist" location="dist"/>\r
+\r
+ <target name="set.jboss.home" unless="jboss.home">\r
+ <property name="jboss.home" value="${jboss.dir}" />\r
+ </target>\r
+\r
+ <target name="setproperties" unless="jboss.server" depends="set.jboss.home">\r
+ <property name="jboss.server" value="${jboss.home}/server/${jboss.config}" />\r
+ <property name="jboss.deploy" value="${jboss.server}/deploy" />\r
+ <property name="jboss.lib" value="${jboss.server}/lib" />\r
+ </target>\r
+\r
+\r
+ <condition property="osfamily-unix">\r
+ <os family="unix" />\r
+ </condition>\r
+ <condition property="osfamily-windows">\r
+ <os family="windows" />\r
+ </condition>\r
+\r
+ <target name="init" depends="setproperties">\r
+ <!-- Create the time stamp -->\r
+ <tstamp/>\r
+ <!-- Create the build directory structure used by compile -->\r
+ <mkdir dir="${build}"/>\r
+\r
+ </target>\r
+\r
+ <target name="compile" depends="init"\r
+ description="compile the source " >\r
+ <!-- Compile the java code from ${src} into ${build} -->\r
+ <javac srcdir="${src}" destdir="${build}"/>\r
+\r
+ </target>\r
+\r
+ <target name="dist" depends="compile"\r
+ description="generate the distribution" >\r
+ <!-- Create the distribution directory -->\r
+ <mkdir dir="${dist}"/>\r
+\r
+ <tar destfile="${dist}/${jboss.release}.${nuxeo.release}.tar.gz" compression="gzip">\r
+ <tarfileset dir="${jboss.dir}"\r
+ preserveLeadingSlashes="true">\r
+ <exclude name="server/${jboss.config}/log/**"/>\r
+ <exclude name="server/${jboss.config}/tmp/**"/>\r
+ <exclude name="server/${jboss.config}/deploy/helloworld.war"/>\r
+ </tarfileset>\r
+ <tarfileset dir="${src}/main/resources"\r
+ preserveLeadingSlashes="true">\r
+ <exclude name="schemas/**"/>\r
+ </tarfileset>\r
+\r
+ </tar>\r
+ </target>\r
+\r
+ <target name="clean"\r
+ description="clean up" >\r
+ <!-- Delete the ${build} and ${dist} directory trees -->\r
+ <!-- Delete the ${build} and ${dist} directory trees -->\r
+ <delete dir="${build}"/>\r
+ <delete dir="${dist}"/>\r
+\r
+ </target>\r
+</project>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project xmlns="http://www.netbeans.org/ns/project/1">\r
+ <type>org.netbeans.modules.ant.freeform</type>\r
+ <configuration>\r
+ <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">\r
+ <name>Services</name>\r
+ </general-data>\r
+ <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">\r
+ <!-- Do not use Project Properties customizer when editing this file manually. -->\r
+ <name>Services</name>\r
+ <properties/>\r
+ <folders>\r
+ <source-folder>\r
+ <label>CS-Services</label>\r
+ <location>.</location>\r
+ <encoding>UTF-8</encoding>\r
+ </source-folder>\r
+ <source-folder>\r
+ <label>src</label>\r
+ <type>java</type>\r
+ <location>src</location>\r
+ <encoding>UTF-8</encoding>\r
+ </source-folder>\r
+ </folders>\r
+ <ide-actions>\r
+ <action name="build">\r
+ <target>compile</target>\r
+ </action>\r
+ <action name="clean">\r
+ <target>clean</target>\r
+ </action>\r
+ <action name="run">\r
+ <target>dist</target>\r
+ </action>\r
+ <action name="rebuild">\r
+ <target>clean</target>\r
+ <target>compile</target>\r
+ </action>\r
+ </ide-actions>\r
+ <view>\r
+ <items>\r
+ <source-folder style="packages">\r
+ <label>src</label>\r
+ <location>src</location>\r
+ </source-folder>\r
+ <source-file>\r
+ <location>build.xml</location>\r
+ </source-file>\r
+ </items>\r
+ <context-menu>\r
+ <ide-action name="build"/>\r
+ <ide-action name="rebuild"/>\r
+ <ide-action name="clean"/>\r
+ <ide-action name="run"/>\r
+ </context-menu>\r
+ </view>\r
+ <subprojects/>\r
+ </general-data>\r
+ <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/1">\r
+ <compilation-unit>\r
+ <package-root>src</package-root>\r
+ <source-level>1.5</source-level>\r
+ </compilation-unit>\r
+ </java-data>\r
+ </configuration>\r
+</project>\r