]> source.dussan.org Git - aspectj.git/commitdiff
- added aspectjrt target (alias to runtime)
authorwisberg <wisberg>
Mon, 23 Dec 2002 20:45:48 +0000 (20:45 +0000)
committerwisberg <wisberg>
Mon, 23 Dec 2002 20:45:48 +0000 (20:45 +0000)
- implemented target to fail if bootstrap libraries are out of date
- moved update-tree under setup comment

build/build.xml

index 015493d91f7aa2b556df4e5042054116aba4917e..5c1cecd7a1f7313c04a9cfe1e8761a216c16856a 100644 (file)
       <available property="testing.drivers.all.available"
          file="${aj.jar.dir}/testing-drivers-all.jar"
          value="${aj.jar.dir}/testing-drivers-all.jar"/>
-
     </target>
 
     <target name="version-uptodate" depends="init,init-taskdefs"
          unless="version-uptodate.done">
+         <!-- XXX change task to pre-check & avoid scan if dates uptodate -->
                 <versionuptodate
                        version="${build.version}"
                        versionSourceFile="${aspectj.modules.dir}/bridge/src/org/aspectj/bridge/Version.java"
       <echo message="----- WARNING: ${ant.lib.aspectjtools}" /> 
     </target>
 
+       <target name="fail-unless-boot-libraries-uptodate" depends="init"
+        description="fail unless all boot libraries are up-to-date">
+               
+               <antcall target="verify-boot-lib">
+                       <param name="boot.lib"        value="test/aspectjrt.jar"/>
+                       <param name="vbl.module.name" value="runtime"/>
+               </antcall>
+               
+               <antcall target="verify-boot-lib">
+                       <param name="boot.lib"        value="build/build.jar"/>
+                       <param name="vbl.module.name" value="build"/>
+               </antcall>
+
+               <antcall target="verify-boot-lib">
+                       <param name="boot.lib"        value="test/testing-client.jar"/>
+                       <param name="vbl.module.name" value="testing-client"/>
+               </antcall>
+
+               <echo message="all boot libraries verified"/>           
+       </target>
+
+       <target name="update-tree" depends="init"
+     description="update tree">
+      <fail unless="CVSROOT" 
+           message="required: {ant} -DCVSROOT=... ..."/>
+      <cvs cvsRoot="${CVSROOT}"
+              dest="${aspectj.modules.dir}"
+             quiet="on" 
+       failonerror="on" 
+           command="update -dP" />
+    </target>
+
     <!-- ===================================================================== -->
     <!-- test targets                                                          -->
     <!-- ===================================================================== -->     
           <!-- todo: product install and tests -->
        </target>
        
-    <!-- ===================================================================== -->
-    <!-- tree targets                                                          -->
-    <!-- ===================================================================== -->     
-       <target name="update.tree" depends="init"
-     description="update tree">
-      <fail unless="CVSROOT" 
-           message="required: {ant} -DCVSROOT=... ..."/>
-      <cvs cvsRoot="${CVSROOT}"
-              dest="${aspectj.modules.dir}"
-             quiet="on" 
-       failonerror="on" 
-           command="update -dP" />
-    </target>
-
     <!-- ===================================================================== -->
     <!-- antcall targets                                                       -->
     <!-- ===================================================================== -->     
                 resourcesSrc="${aspectj.modules.build.dir}/installer-resources"/>
        </target>
 
+       <target name="verify-boot-lib" depends="init"
+        description="fail if ${boot.lib} is out of date wrt ${vbl.module.name}">
+      <uptodate property="lib-warning-${vbl.module.name}"
+              targetfile="${aspectj.modules.dir}/lib/${boot.lib}">
+       <srcfiles dir="${aspectj.modules.dir}/${vbl.module.name}/src"
+              includes="**/*.java"/>
+      </uptodate>
+      
+      <fail unless="lib-warning-${vbl.module.name}"
+        message="${boot.lib} out of date wrt module ${vbl.module.name}"/>
+
+    </target>
+
     <!-- ===================================================================== -->
     <!-- custom targets                                                        -->
     <!-- ===================================================================== -->
            inheritAll="false"/> <!-- true? -->
        </target>
        
-       <target name="runtime" depends="init">
+       <target name="aspectjrt" depends="init"
+        description="build aspectjrt.jar (differently than release)">
          <antcall target="build-module-all">
            <param name="module.name" value="runtime"/>
          </antcall>
+         <copy file="${aj.jar.dir}/runtime.jar"
+             tofile="${aj.jar.dir}/aspectjrt.jar"/>
        </target>
        
     <!-- ===================================================================== -->