sdkcreationmw/sdkruntimes/sdkdiagnosticsui/sdkDiagnostics.build.xml
author rajpuroh
Mon, 08 Mar 2010 12:09:11 +0530
changeset 0 b26acd06ea60
permissions -rw-r--r--
First Contribution of SDK components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
<?xml version="1.0"?>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
<project name="SDKDiagnostics Package" default="develop" basedir=".">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
<!-- ANT BUILD FILE FOR SDKDIAGNOSTICS PKG  -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
<!--          -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
<!-- To use:        -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
<!-- % ant -buildfile sdkdiagnostics.build.xml  -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
<!--set global properties for this build-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
<property name="name" value="SDKDiagnostics"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
<property name="build" value="build"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
<property name="verbose" value="off"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
<property name="debug" value="on"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
<property name="javadoc.dir" value="javadoc"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
<property name="build.classes" value="${build}/classes"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
<property name="src" value="${basedir}/src"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
<property name="nmit.shared.dir" value="${basedir}/../NmitShared"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
<property name="lib.path" value="${nmit.shared.dir}/lib"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
<!-- Distribution layout -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
<property name="dist" value="${basedir}/dist"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
<property name="dist.lib" value="${dist}/lib"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
<property name="dist.doc" value="${dist}/doc"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
<property name="classpath" value="${lib.path}/app.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
                                  ${lib.path}/hcodec.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
                                  ${lib.path}/bookmarks.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
                                  ${lib.path}/wtkdev.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
                                  ${lib.path}/http.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
                                  ${lib.path}/mms.jar;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
                                  ${lib.path}/util.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
                                  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
<patternset id="jars.list">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
  <include name="app.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
  <include name="hcodec.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
  <include name="bookmarks.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
  <include name="wtkdev.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
  <include name="http.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
  <include name="mms.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
  <include name="util.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
</patternset>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
<!-- Manifest Info -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
<property name="manifest" value="${build}/sdkDiagnostics.manifest"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
<!-- Final jar -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
<property name="sdkDiagnostics.jar" value="sdkDiagnostics.jar"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
<!--TARGET [PREPARE]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
<target name="prepare" description="Prepare build environment">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
  <echo>Preparing Build Environment for SDKDiagnostics package </echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
  <tstamp/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
  <!-- remove old stuff -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
  <delete dir="${build.classes}" quiet="true"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
  <delete dir="${javadoc.dir}" quiet="true"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    68
  <!-- create the build directory structure -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    69
  <echo>Creating output directories...</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    70
  <mkdir dir="${build}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    71
  <mkdir dir="${build.classes}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    72
  <mkdir dir="${javadoc.dir}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    73
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    74
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    75
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    76
<!--TARGET [COMPILE]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    77
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    78
<target name="compile" depends="prepare" description="Compile java sources">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    79
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    80
  <echo>Building SDKDiagnostics...</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    81
  <javac 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    82
    srcdir="${src}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    83
    destdir="${build.classes}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    84
    includes="**/*.java"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    85
    classpath="${classpath}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    86
    verbose="${verbose}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    87
    debug="${debug}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    88
  />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    89
  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    90
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    91
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    92
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    93
<!--TARGET [ARCHIVE]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    94
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    95
<target name="archive" description="Archive java classes and resources">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    96
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    97
  <echo>Copying resource files..</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    98
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    99
  <copy todir="${build.classes}">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   100
    <fileset dir="${src}" 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   101
                   includes="com/nokia/wtk/**/resources/*"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   102
          />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   103
  </copy>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   104
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   105
  <echo>Creating manifest..</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   106
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   107
  <delete file="${manifest}" quiet="true"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   108
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   109
  <!-- NOTE: THERE MUST BE NO EXTRA WHITE SPACE AT END OF LINES -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   110
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   111
  <echo>Archiving sources and resources..</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   112
  <jar
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   113
    jarfile="${build}/${sdkDiagnostics.jar}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   114
    basedir="${build.classes}"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   115
         />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   116
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   117
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   118
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   119
<!--TARGET [DEVELOP]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   120
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   121
<target name="develop" depends="compile,archive" description="Build Distribution">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   122
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   123
  <mkdir dir="${dist.lib}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   124
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   125
  <!-- Just copy the jar -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   126
  <copy todir="${dist.lib}">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   127
    <fileset dir="${build}" includes="${sdkDiagnostics.jar}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   128
    <fileset dir="${lib.path}">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   129
      <patternset refid="jars.list"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   130
    </fileset>      
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   131
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   132
  </copy>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   133
  <echo>Built SDKDiagnostics Package!</echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   134
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   135
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   136
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   137
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   138
<!--TARGET [CLEAN]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   139
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   140
<target name="clean" description="Delete entire build">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   141
  <delete dir="${build}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   142
  <delete dir="${dist}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   143
  <delete dir="${javadoc.dir}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   144
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   145
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   146
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   147
<!--TARGET [CLOBBER]-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   148
<!--==========================================-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   149
<target name="clobber" depends="clean" description="Delete entire package">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   150
  <delete dir="${dist}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   151
</target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   152
</project>