Changeset 8 in tmcsimulator-scriptbuilder for trunk/build.xml


Ignore:
Timestamp:
07/25/2017 02:20:10 PM (9 years ago)
Author:
jdalbey
Message:

ScriptBuilderFrame?.java updated to add svn revision number to About box. (Also modified build.xml)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r7 r8  
    1111    <description>Builds, tests, and runs the project ScriptBuilder_Repo.</description> 
    1212    <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> 
    1338    <!-- 
    1439 
    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: 
    1843 
    1944      -pre-init:                 called before initialization of project properties 
     
    4166        </target> 
    4267 
    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. 
    4570 
    4671 
    4772    Another way to customize the build is by overriding existing main targets. 
    48     The targets of interest are:  
     73    The targets of interest are: 
    4974 
    5075      -init-macrodef-javac:     defines macro for javac compilation 
     
    5378      -init-macrodef-java:      defines macro for class execution 
    5479      -do-jar:                  JAR building 
    55       run:                      execution of project  
     80      run:                      execution of project 
    5681      -javadoc-build:           Javadoc generation 
    5782      test-report:              JUnit report generation 
     
    6590        </target> 
    6691 
    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 
    6994    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. 
    7196 
    7297    --> 
Note: See TracChangeset for help on using the changeset viewer.