Changeset 8 in tmcsimulator-scriptbuilder for trunk/build.xml
- Timestamp:
- 07/25/2017 02:20:10 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/build.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r7 r8 11 11 <description>Builds, tests, and runs the project ScriptBuilder_Repo.</description> 12 12 <import file="nbproject/build-impl.xml"/> 13 14 <!-- STORE SUBVERSION BUILD STRING --> 15 <target name="-post-init" description="Sets the buildversion for the current build"> 16 <exec outputproperty="svna.version" executable="svnversion"> 17 <arg value="-c" /> 18 19 <redirector> 20 <outputfilterchain> 21 <tokenfilter> 22 <replaceregex pattern="^[0-9]*:?" replace="" flags="g"/> 23 <replaceregex pattern="M" replace="" flags="g"/> 24 </tokenfilter> 25 </outputfilterchain> 26 </redirector> 27 </exec> 28 <propertyfile file="${src.dir}/scriptbuilder/gui/application.properties"> 29 <entry key="Application.revision" value="${svna.version}" type="int" operation="="/> 30 </propertyfile> 31 <echo>Setting SVN version: ${svna.version}</echo> 32 </target> 33 <target name="-post-jar" description="Sets the buildversion for the current build"> 34 <propertyfile file="${src.dir}/scriptbuilder/gui/application.properties"> 35 <entry key="Application.buildnumber" value="1" type="int" operation="+"/> 36 </propertyfile> 37 </target> 13 38 <!-- 14 39 15 There exist several targets which are by default empty and which can be 16 used for execution of your tasks. These targets are usually executed 17 before and after some main targets. They are: 40 There exist several targets which are by default empty and which can be 41 used for execution of your tasks. These targets are usually executed 42 before and after some main targets. They are: 18 43 19 44 -pre-init: called before initialization of project properties … … 41 66 </target> 42 67 43 For list of available properties check the imported 44 nbproject/build-impl.xml file. 68 For list of available properties check the imported 69 nbproject/build-impl.xml file. 45 70 46 71 47 72 Another way to customize the build is by overriding existing main targets. 48 The targets of interest are: 73 The targets of interest are: 49 74 50 75 -init-macrodef-javac: defines macro for javac compilation … … 53 78 -init-macrodef-java: defines macro for class execution 54 79 -do-jar: JAR building 55 run: execution of project 80 run: execution of project 56 81 -javadoc-build: Javadoc generation 57 82 test-report: JUnit report generation … … 65 90 </target> 66 91 67 Notice that the overridden target depends on the jar target and not only on 68 the compile target as the regular run target does. Again, for a list of available 92 Notice that the overridden target depends on the jar target and not only on 93 the compile target as the regular run target does. Again, for a list of available 69 94 properties which you can use, check the target you are overriding in the 70 nbproject/build-impl.xml file. 95 nbproject/build-impl.xml file. 71 96 72 97 -->
Note: See TracChangeset
for help on using the changeset viewer.
