themeinstaller/source/build.xml
changeset 0 05da4621cfb2
equal deleted inserted replaced
-1:000000000000 0:05da4621cfb2
       
     1 	<!-- ****************************** -->
       
     2 	<!-- XML2ODT Convertor Build Script -->
       
     3 	<!-- ****************************** -->
       
     4 
       
     5 	<project name="build" default="all" basedir=".">
       
     6 
       
     7 	<!-- Build properties -->
       
     8 	<property name="src" location="${basedir}/src" />
       
     9 	<property name="lib" location="${basedir}/lib" />
       
    10 	<property name="build" location="${basedir}/bin" />
       
    11 	
       
    12 
       
    13 	<!-- Compilation classpath -->
       
    14 	<path id="build.classpath">
       
    15 		<pathelement path="${build}" />
       
    16 		<fileset dir="${lib}/batik">
       
    17 			<include name="*.jar"/>
       
    18 		</fileset>
       
    19 		<fileset dir="${lib}/icu">
       
    20 			<include name="*.jar"/>
       
    21 		</fileset>
       
    22 		<fileset dir="${lib}/xerces">
       
    23 			<include name="*.jar"/>
       
    24 		</fileset><fileset dir="${lib}/xml-apis-ext">
       
    25 			<include name="*.jar"/>
       
    26 		</fileset>		
       
    27 		
       
    28 	</path>
       
    29 
       
    30 	<!-- Init the build -->
       
    31 	<target name="init">
       
    32 		<echo>The XML2ODT Tool Build is started............ </echo>
       
    33 		<delete dir="${build}" failonerror="false"/>
       
    34 		<delete dir="${build}/package" failonerror="false"/>
       
    35 
       
    36 		<mkdir dir="${build}" />
       
    37 	</target>
       
    38 
       
    39 	<!-- Compile the component -->
       
    40 	<target name="compile" depends="init">
       
    41 		<javac destdir="${build}" debug="yes">
       
    42 			<classpath refid="build.classpath" />
       
    43 			<src path="${src}" />
       
    44 		</javac>
       
    45 	</target>
       
    46 
       
    47 	<!-- Compile the tests -->
       
    48 	<!--<target name="compiletests" depends="compile">
       
    49 		<javac destdir="${build}" debug="yes">
       
    50 			<classpath refid="build.classpath" />
       
    51 			<src path="${unittests}" />
       
    52 			<src path="${moduletests}" />
       
    53 		</javac>
       
    54 	</target>-->
       
    55 
       
    56 	<target name="makeApp" depends="compile">
       
    57 		<jar destfile="${build}/ThemeInstaller.jar" 
       
    58 			basedir="${build}"/>
       
    59 		<mkdir dir="${build}/package/ThemeInstaller/data" />
       
    60 		<mkdir dir="${build}/package/ThemeInstaller/lib" />
       
    61 		<mkdir dir="${build}/package/ThemeInstaller/doc" />
       
    62 		<mkdir dir="${build}/package/ThemeInstaller/scripts" />		
       
    63 		<copy todir="${build}/package/ThemeInstaller/data" >
       
    64 			<fileset dir="${basedir}/data"/>
       
    65 		</copy>
       
    66 		<copy todir="${build}/package/ThemeInstaller/lib">
       
    67 			<fileset dir="${basedir}/lib"/>
       
    68 		</copy>
       
    69 		<copy todir="${build}/package/ThemeInstaller/doc" >
       
    70 			<fileset dir="${basedir}/doc"/>
       
    71 
       
    72 		</copy>
       
    73 		<copy todir="${build}/package/ThemeInstaller/scripts" >
       
    74 			<fileset dir="${basedir}/scripts"/>
       
    75 		</copy>
       
    76 		
       
    77 		<copy file="${basedir}/scripts/ThemeInstaller.bat" todir="${build}/package/ThemeInstaller"/>
       
    78 		<copy file="${build}/ThemeInstaller.jar" todir="${build}/package/ThemeInstaller"/>
       
    79 		<zip destfile="${basedir}/ThemeInstaller.zip" basedir="${build}/package"/>
       
    80 
       
    81 	</target>
       
    82 
       
    83 	<target name="all" depends="clean"/>
       
    84 
       
    85 	<!-- Delete the directories -->
       
    86 	<target name="clean" depends="makeApp">
       
    87 		<delete dir="${build}" />
       
    88 	</target>
       
    89 
       
    90 </project>