java/nekurak.net-ear/build.xml
changeset 117 607fbe95edda
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-ear/build.xml	Wed Apr 28 01:52:23 2010 +0200
     1.3 @@ -0,0 +1,62 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- You may freely edit this file. See commented blocks below for -->
     1.6 +<!-- some examples of how to customize the build. -->
     1.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     1.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     1.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    1.10 +<!-- the Compile on Save feature is turned off for the project. -->
    1.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    1.12 +<!-- in the project's Project Properties dialog box.-->
    1.13 +<project name="nekurak.net-ear" default="default" basedir="." xmlns:ear="http://www.netbeans.org/ns/j2ee-earproject/2">
    1.14 +    <description>Builds, tests, and runs the project nekurak.net-ear.</description>
    1.15 +    <import file="nbproject/build-impl.xml"/>
    1.16 +    <!--
    1.17 +
    1.18 +    There exist several targets which are by default empty and which can be
    1.19 +    used for execution of your tasks. These targets are usually executed
    1.20 +    before and after some main targets. They are:
    1.21 +
    1.22 +      pre-init:                 called before initialization of project properties
    1.23 +      post-init:                called after initialization of project properties
    1.24 +      pre-compile:              called before javac compilation
    1.25 +      post-compile:             called after javac compilation
    1.26 +      pre-dist:                 called before archive building
    1.27 +      post-dist:                called after archive building
    1.28 +      post-clean:               called after cleaning build products
    1.29 +      pre-run-deploy:           called before deploying
    1.30 +      post-run-deploy:          called after deploying
    1.31 +
    1.32 +    Example of pluging an obfuscator after the compilation could look like
    1.33 +
    1.34 +	<target name="post-compile">
    1.35 +	    <obfuscate>
    1.36 +		<fileset dir="${build.classes.dir}"/>
    1.37 +	    </obfuscate>
    1.38 +	</target>
    1.39 +
    1.40 +    For list of available properties check the imported
    1.41 +    nbproject/build-impl.xml file.
    1.42 +
    1.43 +
    1.44 +    Other way how to customize the build is by overriding existing main targets.
    1.45 +    The target of interest are:
    1.46 +
    1.47 +      do-dist:                archive building
    1.48 +      run:                    execution of project
    1.49 +
    1.50 +    Example of overriding the target for project execution could look like
    1.51 +
    1.52 +	<target name="run" depends="<PROJNAME>-impl.jar">
    1.53 +	    <exec dir="bin" executable="launcher.exe">
    1.54 +		<arg file="${dist.jar}"/>
    1.55 +	    </exec>
    1.56 +	</target>
    1.57 +
    1.58 +    Notice that overridden target depends on jar target and not only on
    1.59 +    compile target as regular run target does. Again, for list of available
    1.60 +    properties which you can use check the target you are overriding in
    1.61 +    nbproject/build-impl.xml file.
    1.62 +
    1.63 +    -->
    1.64 +
    1.65 +</project>