zapomenuté build.xml v_0 v0.1
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 07 Oct 2012 16:18:03 +0200
branchv_0
changeset 245f06cd524b2c
parent 23 279604933063
child 25 80527aaef611
zapomenuté build.xml
java/rozsirene-atributy-jedit/build.xml
java/rozsirene-atributy/build.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/rozsirene-atributy-jedit/build.xml	Sun Oct 07 16:18:03 2012 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<project name="rozsirene-atributy-jedit" default="default" basedir=".">
     1.6 +	<description>Builds, tests, and runs the project rozsirene-atributy-jedit.</description>
     1.7 +	<import file="nbproject/build-impl.xml"/>
     1.8 +	
     1.9 +	<target name="-pre-jar" description="Nakopíruje zkompilované třídy z rozsirene-atributy do JARu modulu pro jEdit.">
    1.10 +		<copy todir="${build.classes.dir}">
    1.11 +			<fileset dir="${build.classes.dir}/../../../rozsirene-atributy/build/classes/"/>
    1.12 +		</copy>
    1.13 +	</target>
    1.14 +	
    1.15 +</project>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/rozsirene-atributy/build.xml	Sun Oct 07 16:18:03 2012 +0200
     2.3 @@ -0,0 +1,74 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<!-- You may freely edit this file. See commented blocks below for -->
     2.6 +<!-- some examples of how to customize the build. -->
     2.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     2.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     2.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    2.10 +<!-- the Compile on Save feature is turned off for the project. -->
    2.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    2.12 +<!-- in the project's Project Properties dialog box.-->
    2.13 +<project name="rozsirene-atributy" default="default" basedir=".">
    2.14 +    <description>Builds, tests, and runs the project rozsirene-atributy.</description>
    2.15 +    <import file="nbproject/build-impl.xml"/>
    2.16 +    <!--
    2.17 +
    2.18 +    There exist several targets which are by default empty and which can be 
    2.19 +    used for execution of your tasks. These targets are usually executed 
    2.20 +    before and after some main targets. They are: 
    2.21 +
    2.22 +      -pre-init:                 called before initialization of project properties
    2.23 +      -post-init:                called after initialization of project properties
    2.24 +      -pre-compile:              called before javac compilation
    2.25 +      -post-compile:             called after javac compilation
    2.26 +      -pre-compile-single:       called before javac compilation of single file
    2.27 +      -post-compile-single:      called after javac compilation of single file
    2.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
    2.29 +      -post-compile-test:        called after javac compilation of JUnit tests
    2.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    2.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
    2.32 +      -pre-jar:                  called before JAR building
    2.33 +      -post-jar:                 called after JAR building
    2.34 +      -post-clean:               called after cleaning build products
    2.35 +
    2.36 +    (Targets beginning with '-' are not intended to be called on their own.)
    2.37 +
    2.38 +    Example of inserting an obfuscator after compilation could look like this:
    2.39 +
    2.40 +        <target name="-post-compile">
    2.41 +            <obfuscate>
    2.42 +                <fileset dir="${build.classes.dir}"/>
    2.43 +            </obfuscate>
    2.44 +        </target>
    2.45 +
    2.46 +    For list of available properties check the imported 
    2.47 +    nbproject/build-impl.xml file. 
    2.48 +
    2.49 +
    2.50 +    Another way to customize the build is by overriding existing main targets.
    2.51 +    The targets of interest are: 
    2.52 +
    2.53 +      -init-macrodef-javac:     defines macro for javac compilation
    2.54 +      -init-macrodef-junit:     defines macro for junit execution
    2.55 +      -init-macrodef-debug:     defines macro for class debugging
    2.56 +      -init-macrodef-java:      defines macro for class execution
    2.57 +      -do-jar-with-manifest:    JAR building (if you are using a manifest)
    2.58 +      -do-jar-without-manifest: JAR building (if you are not using a manifest)
    2.59 +      run:                      execution of project 
    2.60 +      -javadoc-build:           Javadoc generation
    2.61 +      test-report:              JUnit report generation
    2.62 +
    2.63 +    An example of overriding the target for project execution could look like this:
    2.64 +
    2.65 +        <target name="run" depends="rozsirene-atributy-impl.jar">
    2.66 +            <exec dir="bin" executable="launcher.exe">
    2.67 +                <arg file="${dist.jar}"/>
    2.68 +            </exec>
    2.69 +        </target>
    2.70 +
    2.71 +    Notice that the overridden target depends on the jar target and not only on 
    2.72 +    the compile target as the regular run target does. Again, for a list of available 
    2.73 +    properties which you can use, check the target you are overriding in the
    2.74 +    nbproject/build-impl.xml file. 
    2.75 +
    2.76 +    -->
    2.77 +</project>