First version of this file
authorAlberto Di Meglio <alberto.di.meglio@cern.ch>
Mon, 22 Nov 2004 13:21:49 +0000 (13:21 +0000)
committerAlberto Di Meglio <alberto.di.meglio@cern.ch>
Mon, 22 Nov 2004 13:21:49 +0000 (13:21 +0000)
org.glite.jp/build.xml [new file with mode: 0644]
org.glite.jp/project/build.properties [new file with mode: 0644]
org.glite.jp/project/dependencies.properties [new file with mode: 0644]
org.glite.jp/project/glite.jp.csf.xml [new file with mode: 0644]
org.glite.jp/project/properties.xml
org.glite.jp/project/run-workspace [new file with mode: 0644]
org.glite.jp/project/taskdefs.xml
org.glite.jp/project/version.properties [new file with mode: 0644]

diff --git a/org.glite.jp/build.xml b/org.glite.jp/build.xml
new file mode 100644 (file)
index 0000000..d0e688e
--- /dev/null
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
+
+       Build file for the GLite Middleware Job Provenance Subsystem
+       
+       Authors: Ales Krenek <ljocha@ics.muni.cz>
+       Version info: $Id$
+       Release: $Name$
+
+       Revision history:
+       $Log$
+-->
+
+<project name="jp" default="dist">
+
+       <description>
+               Ant build file to build the GLite Job Provenance Subsystem
+       </description>
+               
+       <!-- =========================================
+                Builds the GLite JP subsystem
+            ========================================= -->
+
+       <!-- Import baseline & user properties -->
+       <import file="../org.glite/project/baseline.properties.xml" />
+
+       <!-- Import subsystem build properties, 
+                             subsystem properties & 
+                             subsystem common properties -->
+       <import file="./project/properties.xml" />
+
+       <!-- Import global build properties and global properties -->
+       <import file="${global.properties.file}" />
+                               
+       <!-- =========================================
+                Load dependencies properties files (order is important) 
+            ========================================= -->
+       <property file="${user.dependencies.file}"/>
+       <property file="${subsystem.dependencies.file}"/>
+       <property file="${global.dependencies.file}"/>  
+
+       <!-- =========================================
+                 Load configure options
+             ========================================= -->
+        <import file="${global.configure.options.file}"/>
+                       
+       <!-- =========================================
+                Import global task definitions
+            ========================================= -->
+       <import file="${global.taskdefs.file}" />
+       
+       <!-- =========================================
+            Import global compiler definitions
+            ========================================= -->
+       <import file="${global.compilerdefs.file}" />
+               
+       <!-- =========================================
+                Import targets 
+            ========================================= -->
+       <import file="${global.targets-common.file}"/>
+       
+       <!-- =========================================
+                Load version file 
+            ========================================= -->
+       <property file="${module.version.file}"/>
+                       
+       <!-- ===============================================
+                 Public common targets
+            =============================================== -->
+
+       <target name="localinit" depends="envcheck">
+
+               <echo> Preparing directories ... </echo>
+               
+               <mkdir dir="${stage.bin.dir}" />
+               <mkdir dir="${stage.lib.dir}" />
+               <mkdir dir="${stage.java.dir}" />
+               <mkdir dir="${stage.inc.dir}" />
+               <mkdir dir="${stage.int.dir}" />
+
+               <mkdir dir="${dist.dir}" />
+
+       </target>
+
+       <target name="init" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="init"/>
+               </antcall>
+       </target>
+
+       <target name="checkstyle" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="checkstyle"/>
+               </antcall>
+       </target>
+
+       <target name="compile" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="compile"/>
+               </antcall>
+       </target>
+
+       <target name="compiletest" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="compiletest"/>
+               </antcall>
+       </target>
+
+       <target name="unittest" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="unittest"/>
+               </antcall>
+       </target>
+
+       <target name="unitcoverage" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="unitcoverage"/>
+               </antcall>
+       </target>
+
+       <target name="stage" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="stage"/>
+               </antcall>
+       </target>
+
+       <target name="dist" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="dist"/>
+               </antcall>
+       </target>
+
+       <target name="install" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="install"/>
+               </antcall>
+       </target>
+
+       <target name="doc" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="doc"/>
+               </antcall>
+       </target>
+
+       <target name="all" depends="localinit">
+               <antcall target="buildmodules">
+                       <param name="target" value="all"/>
+               </antcall>
+       </target>
+
+       <target name="clean" depends="envcheck">
+
+               <property name="offline.repository" value="true" />
+               <antcall target="buildmodules">
+                       <param name="target" value="clean"/>
+               </antcall>
+
+               <delete dir="${module.bin.dir}" />
+               <delete dir="${module.lib.dir}" />
+               <delete dir="${module.autosrc.dir}" />
+               <delete dir="${module.autodoc.dir}" />
+               <delete dir="${module.test.reports.dir}" />
+
+       </target>
+
+       <target name="cleanAll" depends="clean"/>
+
+       <!-- ===============================================
+                Private targets
+            =============================================== -->
+
+       <!-- ===============================================
+                Modules proxy targets
+            =============================================== -->
+
+       <!-- component targets definitions tag = do not remove = -->
+
+       <!-- Main proxy -->
+       <target name="buildmodules" depends="envset">
+               <echo append="true" file="${global.project.dir}/cruisecontrol-stub.xml">
+       &lt;project name="${subsystem.name}" type="post-subsystem" packageName="${global.prefix}-${subsystem.prefix}"/&gt;
+               </echo>
+       </target>
+
+</project>
diff --git a/org.glite.jp/project/build.properties b/org.glite.jp/project/build.properties
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/org.glite.jp/project/dependencies.properties b/org.glite.jp/project/dependencies.properties
new file mode 100644 (file)
index 0000000..4665b3c
--- /dev/null
@@ -0,0 +1,9 @@
+###################################################################
+# System dependencies
+###################################################################
+
+org.glite.version                      = HEAD
+org.glite.jp.version   = HEAD
+
+# Component dependencies tag = do not remove this line =
+
diff --git a/org.glite.jp/project/glite.jp.csf.xml b/org.glite.jp/project/glite.jp.csf.xml
new file mode 100644 (file)
index 0000000..af5bf4a
--- /dev/null
@@ -0,0 +1,206 @@
+<?xml version="1.0"?>
+<!--
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
+
+       GLite Middleware Job Provenance Configuration Specification File
+       
+       Authors: Alberto Di Meglio <alberto.di.meglio@cern.ch>  
+       Version info: $Id$
+       Release: $Name$
+
+       Revision history:
+       $Log$
+-->
+
+
+<project name="GLite Middleware JP CSF" default="all">
+
+       <!-- ===============================================
+                 Determine workspace directory 
+            =============================================== -->
+
+       <!-- Relative workspace root directory -->
+       <property name="workspace.dir" value="../.." />
+       
+       <!-- ===============================================
+                Load properties
+            =============================================== -->
+
+       <!-- load baseline and user properties -->
+       <import file="${workspace.dir}/org.glite/project/baseline.properties.xml" />
+
+       <!-- define build properties file location since we are already in project dir -->
+       <property name="subsystem.build.properties.file" value="./build.properties" />
+
+       <!-- Load subsystem-specific property file -->
+       <property file="./properties.xml"/>
+
+       <!-- load global properties -->
+       <import file="${global.properties.file}" />
+
+       <!-- ===============================================
+                Load dependencies 
+            =============================================== -->
+
+       <!-- Load user dependencies file -->
+       <property file="${user.dependencies.file}" />
+               
+       <!-- Load subsystem dependencies file -->
+       <property file="./dependencies.properties" />
+
+       <!-- Load global dependencies file -->
+       <property file="${global.dependencies.file}" />
+
+       <!-- ===============================================
+                Load targets
+                =============================================== -->
+       <import file="${global.targets-envchecks.file}" />
+       <import file="${global.targets-external-dependencies.file}" />  
+
+       <!-- ===============================================
+                Evaluate CVS tags
+                =============================================== -->
+
+       <target name="evaluate.cvs.tags" description="Figure out if we need tagged CVS checkout">
+               
+               <condition property="glite.head">
+                       <and>
+                               <equals arg1="${org.glite.version}" arg2="HEAD" />
+                               <or>
+                                       <istrue value="${update}" />
+                                       <not>
+                                               <available file="${global.dependencies.file}" type="file" />
+                                       </not>
+                               </or>
+                       </and>
+               </condition>
+               
+               <condition property="glite.tag">
+                       <and>
+                               <not>
+                                       <equals arg1="${org.glite.version}" arg2="HEAD" />
+                               </not>
+                               <or>
+                                       <istrue value="${update}" />
+                                       <not>
+                                               <available file="${global.dependencies.file}" type="file" />
+                                       </not>
+                               </or>
+                       </and>
+               </condition>
+               
+               <condition property="glite-jp.head">
+                       <and>
+                               <equals arg1="${org.glite.jp.version}" arg2="HEAD" />
+                               <istrue value="${update}" />
+                       </and>
+               </condition>
+               
+               <condition property="glite-jp.tag">
+                       <and>
+                               <not>
+                                       <equals arg1="${org.glite.jp.version}" arg2="HEAD" />
+                               </not>
+                               <istrue value="${update}" />
+                       </and>
+               </condition>
+
+               <!-- condition property tag = do not remove = -->
+
+       </target>
+
+       <presetdef name="cvs-co">
+               <cvs command="checkout" dest="${workspace.dir}" />
+       </presetdef>
+
+       <!-- =====================================================
+                Self-update if required
+            ===================================================== -->
+
+       <!-- Update main GLite module -->
+       <target name="org.glite" depends="get.glite.head, get.glite.tag"/>
+
+       <target name="get.glite.head" if="glite.head">
+               <cvs-co package="org.glite" />
+       </target>
+
+       <target name="get.glite.tag" if="glite.tag">
+               <cvs-co package="org.glite"
+                       tag="${org.glite.version}" />
+       </target>
+
+       <!-- Update the current module -->
+       <target name="org.glite.jp" depends="get.glite-jp.head, 
+                                                               get.glite-jp.tag"/>
+
+       <target name="get.glite-jp.head" if="glite-jp.head">
+               <cvs-co package="org.glite.jp" />
+               <fail>The org.glite and org.glite.jp modules have been updated, please rerun the configuration file</fail>
+       </target>
+
+       <target name="get.glite-jp.tag" if="glite-jp.tag">
+               <cvs-co package="org.glite.jp"
+                       tag="${org.glite.jp.version}" />
+               <fail>The org.glite and org.glite.jp modules have been updated, please rerun the configuration file</fail>
+       </target>
+
+       <!-- *****************************************************-->
+       <!-- Development tools                                    -->
+       <!-- *****************************************************-->
+       
+       <!-- All development tools -->
+       <target name="devtools" depends="oscheck,
+                                        junitcheck,
+                                        junit,
+                                        chkstyle,
+                                        jalopy,
+                                        ant-contrib,
+                                        cpptasks,
+                     log4j,
+                                        egee-ant-ext"
+               description="Get development tools into repository."/>          
+
+       <!-- =====================================================
+                External libraries
+            ===================================================== -->
+       
+       <!--  All external libraries -->
+       <target name="external" 
+               description="Install external packages" depends="oscheck"/>
+       
+       <!-- =====================================================
+                GLite Middleware jp modules
+            ===================================================== -->
+       
+       <!-- component targets tag = do not remove = -->
+
+       <!-- All project modules -->
+       <target name="project" depends="" />
+    
+       <!-- ====================================================
+                Checkout all
+            ==================================================== -->
+               
+       <!-- All libraries -->
+       <target name="all" depends="oscheck,
+                                       evaluate.cvs.tags,
+                                       defaultenvchecks,
+                                       org.glite,
+                                       org.glite.jp,
+                                       devtools,
+                                       external,
+                                       project" />             
+
+       <!-- ====================================================
+                Print dependecies to console
+            ==================================================== -->
+       
+       <target name="dependencies">
+               <concat>
+                       <fileset dir="." includes="dependencies.properties" />
+               </concat>
+       </target>               
+
+</project>
index eb879c4..276cf76 100755 (executable)
@@ -1,18 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-       Copyright (c) 2004 on behalf of the EU EGEE Project: 
-       The European Organization for Nuclear Research (CERN), 
-       Istituto Nazionale di Fisica Nucleare (INFN), Italy
-       Datamat Spa, Italy
-       Centre National de la Recherche Scientifique (CNRS), France
-       CS Systeme d'Information (CSSI), France
-       Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
-       Universiteit van Amsterdam (UvA), Netherlands
-       University of Helsinki (UH.HIP), Finland
-       University of Bergen (UiB), Norway
-       Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
 
-       Common build properties file for the gLite LB modules
+       Common build properties file for the gLite JP modules
        
        Authors: Ales Krenek <ljocha@ics.muni.cz>
                         Alberto Di Meglio <alberto.di.meglio@cern.ch>          
 
        Revision history:
        $Log$
-       Revision 1.1  2004/09/14 12:32:26  ljocha
-       *** empty log message ***
-       
-       Revision 1.2  2004/06/18 23:05:53  dimeglio
-       Added/upgraded default build scripts
-       
 -->
 
 <project name="Job Provenance subsystem common properties">
                 ====================================================== -->
        
        <!-- Subsystem name -->
-       <property name="subsystem.name" value="org.glite.jp"/>
+       <property name="subsystem.name" value="${jp.subsystem.name}"/>
        
        <!-- Subsystem prefix -->
-       <property name="subsystem.prefix" value="jp"/>
+       <property name="subsystem.prefix" value="${jp.subsystem.prefix}"/>
        
        <!-- ======================================================
           Define general subsystem properties
diff --git a/org.glite.jp/project/run-workspace b/org.glite.jp/project/run-workspace
new file mode 100644 (file)
index 0000000..a5d1f54
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd ../..
+
+cvs co org.glite
+cvs co org.glite.jp
+                                                                                                                                                             
+cd org.glite.jp/project
+ant -f glite.jp.csf.xml
+
index d8464f7..c4cc889 100755 (executable)
@@ -1,18 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-       Copyright (c) 2004 on behalf of the EU EGEE Project: 
-       The European Organization for Nuclear Research (CERN), 
-       Istituto Nazionale di Fisica Nucleare (INFN), Italy
-       Datamat Spa, Italy
-       Centre National de la Recherche Scientifique (CNRS), France
-       CS Systeme d'Information (CSSI), France
-       Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
-       Universiteit van Amsterdam (UvA), Netherlands
-       University of Helsinki (UH.HIP), Finland
-       University of Bergen (UiB), Norway
-       Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
 
-       Common Ant task definition file for the gLite Logging and Bookeeping modules
+       Common Ant task definition file for the gLite Job Provenance modules
        
        Authors: Ales Krenek <ljocha@ics.muni.cz>
                         Alberto Di Meglio <alberto.di.meglio@cern.ch>          
 
        Revision history:
        $Log$
-       Revision 1.1.1.1  2004/10/15 09:48:07  akrenek
 -->
 
-<project name="Logging and Bookeeping subsystem common tasks and types definitions">
+<project name="Job Provenance subsystem common tasks and types definitions">
        
        <!-- ======================================================
                 Subsystem task definitions
diff --git a/org.glite.jp/project/version.properties b/org.glite.jp/project/version.properties
new file mode 100644 (file)
index 0000000..7911996
--- /dev/null
@@ -0,0 +1,4 @@
+#Sun Nov 21 09:03:32 CET 2004
+module.version=0.1.0
+module.build=1
+module.age=1