Code Search for Developers
 
 
  

releaseBuild.xml from SmartFrog at Krugle


Show releaseBuild.xml syntax highlighted

<?xml version="1.0"?>

<!--
/** (C) Copyright 1998-2004 Hewlett-Packard Development Company, LP

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

For more information: www.smartfrog.org

*/
-->
<!DOCTYPE project [
     <!ENTITY security SYSTEM "private/buildSecurity.xml">
]>
<!-- ===========================================================================



Introduction
============
To Be Written





Installing the build tools
==========================
To Be Written



Build targets
=============
These are the meaningful targets for this build file:
 - build
 - jdocs
-->

<project  name="SFInstallerDist" default="help" basedir=".">
  <!-- =================================================================== -->
  <!-- Initialization target                                               -->
  <!-- =================================================================== -->
  <target name="init">
    <property name="Name" value="SFInstaller Component"/>
    <property name="name" value="(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP"/>
    <property name="version" value="DIST"/>
    <loadproperties srcFile="version.properties"/>
    <fail unless="sf.build.version">No property sf.build.version found in file version.properties</fail>
    <property name="Version" value="${sf.build.version}" />
    <!--property name="Version" value="1.00.000_beta"/-->
    <property name="year" value=""/>
    <echo message=""/>
    <echo message="==================================================================="/>
    <echo message="= ${Name} ${version}"/>
    <echo message="= ${name} "/>
    <echo message="==================================================================="/>
  </target>

  <!-- =================================================================== -->
  <!-- Help on usage                                                       -->
  <!-- =================================================================== -->
  <target name="help" depends="init">
    <echo message=""/>
    <echo message=""/>
    <echo message="SFInstaller Component ${version} Build file"/>
    <echo message="-------------------------------------------------------------"/>
    <echo message=""/>
    <echo message=" available targets are:"/>
    <echo message=""/>
    <echo message="   build           --> compiles source files into sf-emailer-examples.jar"/>
    <echo message="   jdocs           --> creates jdocs for sources"/>
    <echo message=""/>
    <echo message=" See the comments inside the build.xml file for more details."/>
    <echo message=""/>
    <echo message=" -- ${Name}--"/>
    <echo message=""/>
    <echo message="-------------------------------------------------------------"/>
    <echo message=""/>
    <echo message=""/>
  </target>

  <!-- =================================================================== -->
  <!-- Global properties                                                   -->
  <!-- =================================================================== -->
     <property name="dist" value="."/>
     <property name="bin" value="bin"/>
     <property name="lib" value="lib"/>
     <property name="docs" value="docs"/>
     <property name="build" value="classes"/> <!-- all protected files -->
     <property name="src" value="src"/> <!-- all protected files -->
     <property name="debugmode" value="on"/> <!-- turn on compile -g -->
     <property name="jdocs" value="${dist}/${docs}/jdocs"/>
     
  <!-- =================================================================== -->
  <!-- Initialization path (Libs needed for compiling)                     -->
  <!-- =================================================================== -->
  <path id="sfinstaller.class.path">
	  <pathelement path="${classpath}"/>
	  <pathelement location="lib/**.jar"/>
     
  </path>

  <!-- =================================================================== -->
  <!--  Creates directories                                                -->
  <!-- =================================================================== -->
  <target name="initbuild"  depends="init">
     <mkdir dir="${build}"/>
  </target>


  <!-- =================================================================== -->
  <!-- clean                                                               -->
  <!-- =================================================================== -->
  <target name="cleanBuild" depends=""  description="Restores the distribution to its clean state">
    <!-- Delete the ${build} ${dist} ${jdocs} directory trees -->
    <!-- remove parser source files -->
    <delete dir="${build}"/>
    <delete dir="${jdocs}"/>
  </target>

  <!-- =================================================================== -->
  <!--   Copy .sf  files to "build" directories                                                                   -->
  <!-- =================================================================== -->
  <target name="copyFiles" depends="initbuild">
    <copy todir="${build}">
      <fileset dir="${src}">
        <include name="**/*.sf*" />
      </fileset>
    </copy>
  </target>

  <!-- =================================================================== -->
  <!--   Compiles source directory                                                                 -->
  <!-- =================================================================== -->
  <target name="build" depends="copyFiles,initbuild" description="Compiles source code">
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" debug="${debugmode}" compiler="javac1.4" source="1.4">
      <classpath refid="sfinstaller.class.path"/>
    </javac>
    <rmic base="${build}" includes="**/*.class">
      <classpath refid="sfinstaller.class.path"/>
    </rmic>
    <!--  sfExamples.jar                                               -->
    <!-- Create sfExamples.jar file -->
    <jar jarfile="${lib}/sf-sfinstaller-examples.jar"
         basedir="${build}"
         includes="**/examples/**"/>
  </target>

  <!-- =================================================================== -->
  <!--   JDocs                                                                  -->
  <!-- =================================================================== -->
  <target name="jdocs" depends="init" description="Generates the API documentation">
    <!--  Java Docs for all                                                -->
    <echo message=""/>
    <echo message="------------------------------------------------------------------------"/>
    <echo message="  Creating Java Docs for ${Name} examples [${jdocs}]"/>
    <echo message="------------------------------------------------------------------------"/>
    <mkdir dir="${jdocs}"/>
    <javadoc packagenames="org.smartfrog.*"
           sourcepath="${src}"
           destdir="${jdocs}"
           author="true"
           version="true"
           Header="${Name.System} ${Version}"
           Footer="${Name.System} ${version} ${Version}"
           use="true"
           windowtitle="${Name}"
           doctitle="${Name}"
           bottom="${name}"
           source="1.4">
      <group title="SFInstaller Examples Package" packages="org.smartfrog.*"/>
      <classpath refid="sfinstaller.class.path"/>
    </javadoc>
  </target>

</project>



<!-- End of file -->





See more files for this project here

SmartFrog

SmartFrog (Smart Framework for Object Groups) is a framework for configuring and automatically activating distributed applications. \r\nThe SmartFrog framework is released under LGPL license.\r\nMore info at: www.smartfrog.org

Project homepage: http://sourceforge.net/projects/smartfrog
Programming language(s): Java,XML
License: other

  bin/
    JavaService.exe
    start_sfdaemon.bat
  doc/
    sfinstaller_readme.pdf
    sfinstaller_readme.sxw
  lib/
  src/
    org/
      smartfrog/
        services/
          sfinstaller/
            examples/
              Example.java
            Daemon.java
            FileGen.java
            TemplateGen.java
            doAll
            doAll.bat
            hosts.all
            sfInstaller.vm
      Version.java
      version.sf
  .svnignore
  build.example.properties
  build.xml
  buildRelease.xml
  ivy.xml
  project-template.pom
  releaseBuild.xml