All pastes #168035 Raw Edit

Stuff

public text v1 · immutable
·published 2006-09-12 17:03 UTC
rendered paste body
<?xml version="1.0" encoding="UTF-8"?>
<project name="Hero1711_External" default="dist" basedir=".">
	<description>
		This script will build the Hero1711 External.

        === Author === titan86vn ===
        === Date === 2006-09-12 10:38:28 GMT +7 ===

		=== Descript ===
		This script will build what ever you want to include to your server pack
		It's mean you can use this external to put diskw, optional, tools, etc ...
		=== END ===
		
		=== GPL ===
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2, or (at your option)
        any later version.

        This program 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 General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        02111-1307, USA.

        http://www.gnu.org/copyleft/gpl.html
		=== END ===
	
	</description>
	
	<property name="build" location="build"/>
	<property name="build.dist" location="${build}/dist"/>

	<target name="init"
		depends="clean"
		description="Create the output directories.">

        <mkdir dir="${build}"/>
        <mkdir dir="${build.dist}" />
	</target>

    <target name="dist">

		<copy todir="${build.dist}">
			<fileset dir="${basedir}">
                <exclude name=".project"/>
                <exclude name="build.xml"/>
                <exclude name="build/**"/>
                <exclude name="**.svn**"/>
                <include name="**/*.*"/>
	        </fileset>
        </copy>
        
    	<delete file="${build}/L2J_External.zip"/>

    	<zip destfile="${build}/L2J_External.zip"
             basedir="${build.dist}"/>

    </target>
	
    <target name="clean"
            description="Deletes the zip file">

    	<delete dir="${build}"/>
    </target>
	
	<target name="zipfile"
			description="Make only the zip file">
			
		<delete file="${build}/L2J_External.zip"/>

    	<zip destfile="${build}/L2J_External.zip"
             basedir="${build.dist}"/>
	</target>
</project>