Code Search for Developers
 
 
  

build.xml from SmartFrog at Krugle


Show build.xml syntax highlighted

<project name="antbuild" default="published" basedir=".">


<description>
  This build file creates the source tree needed for a complete build of SmartFrog;
  a place to add in new components, with a common.xml file to use for the core building.

  The output is artifacts that are then published for importing into the release
  process, to create a new directory tree.

  One decision that has been made here is that we snapshot the local sandbox, and not
  the trunk or a branch of the SVN repository. This increases the risk that what is
  published does not match what is in the repository, but enables developers
  to release their own custom branch of SmartFrog.

  To use this module safely, create a source tree in a clean checkout of SmartFrog; one
  in which you do no coding, and build in there.


</description>

  <property name="root.dir" location=".." />
  <import file="xml/ivy-mixin.xml" />
  <import file="xml/state.xml" />

  <!--this can be set to place the artifacts in a subdirectory in the tar/zip files-->
  <property name="prefix" value="" />
  <property name="pcomp" value="${prefix}components" />
  <property name="pex" value="${prefix}extras" />
  <property name="comp" location="../components" />
  <property name="ex" location="../extras" />

  <target name="filesets" depends="init">

    <!--this is the patternset for all named projects
      any project with extra dependencies, had better name them
    -->
    <patternset id="project.source">
      <!--exclude stuff that should never be included-->
      <!--as excludes take priority over includes, this stops accidental inclusion-->
      <exclude name="build.properties" />
      <exclude name="*.iml" />
      <exclude name="*.jpx" />
      <exclude name="*.ipr" />
      <exclude name="*.iws" />
      <!--add the things we want-->
      <include name="bin/**"/>
      <include name="doc/**"/>
      <include name="lib/**"/>
      <include name="src/**"/>
      <include name="test/**"/>
      <include name="build.xml"/>
      <include name="ivy.xml"/>
      <include name="ivyconf.xml"/>
      <include name="build.example.properties"/>
      <include name="project-template.pom"/>
      <include name="rmitargets"/>
      <include name="parsertargets.txt"/>
      <!--strongly deprecated, but retained for consistency-->
      <include name="buildRelease.xml"/>
      <include name="releaseBuild.xml"/>

    </patternset>

    <!---->
    <fileset id="root.fileset" dir="..">
      <include name="build.xml" />
      <include name="common.xml" />
      <include name="cruisecontrol.xml" />
      <include name="build.properties.example" />
      <include name="components/libraries.properties" />
    </fileset>

    <fileset id="release.fileset" dir="../release">
      <patternset refid="project.source" />
      <include name="izpack/*" />
      <include name="scripts/**" />
      <include name="metadata/**" />
    </fileset>

    <!--components/libraries.properties is in the root fileset-->
    <fileset id="components.fileset" dir="../components">
      <include name="build.example.properties"/>
      <!--strongly deprecated, but retained for consistency-->
      <include name="build.xml"/>
      <include name="buildRelease.xml"/>
      <include name="buildRelease-template.xml"/>
      <include name="createRelease.xml"/>
      <include name="releaseBuild.xml"/>
      <include name="documentation.xml"/>
      <include name="version.properties"/>
    </fileset>

    <fileset id="antbuild.fileset" dir=".">
      <include name="*.xml" />
      <include name="xml/**/*.xml" />
      <include name="xml/checkstyle/checkstyle-config" />
      <include name="xml/checkstyle/*.xsl" />
      <include name="ivy/**/*.jar" />
      <include name="ivy/*.xsl" />
      <include name="ivy/*.xml" />
      <include name="ivy/*.xsd" />
      <include name="doc/*.sxw" />
      <include name="doc/*.ppt" />
      <include name="repository/**" />
    </fileset>

  </target>


  <target name="package-names" depends="load-version-info">

    <property name="minimal.zip"
        location="${dist.lib.dir}/sf-antbuild-minimal-${smartfrog.version}.zip"/>
    <property name="full.zip"
        location="${dist.lib.dir}/sf-antbuild-full-${smartfrog.version}.zip"/>
    <property name="minimal.tar"
        location="${dist.lib.dir}/sf-antbuild-minimal-${smartfrog.version}.tar"   />
    <property name="full.tar"
        location="${dist.lib.dir}/sf-antbuild-full-${smartfrog.version}.tar"   />
    <property name="src.zip"
        location="${dist.lib.dir}/sf-antbuild-src-${smartfrog.version}.zip"/>
    <property name="src.tar"
        location="${dist.lib.dir}/sf-antbuild-src-${smartfrog.version}.tar"/>
  </target>

  <target name="ready-to-package" depends="filesets,package-names"/>

  <target name="minimal-zip" depends="ready-to-package">
    <zip compress="9" destFile="${minimal.zip}">
      <zipfileset prefix="${prefix}" refid="root.fileset" />
    </zip>
  </target>

  <target name="minimal-unzip" depends="minimal-zip">
    <property name="minimal.unzip.dir" location="${build.dir}/minimal"/>
    <mkdir dir="${minimal.unzip.dir}" />
    <unzip src="${minimal.zip}"
        dest="${minimal.unzip.dir}"/>
  </target>

  <target name="full-zip" depends="ready-to-package">
    <zip compress="9" destFile="${full.zip}">
      <zipfileset prefix="${prefix}" refid="root.fileset" />
      <zipfileset prefix="${prefix}release" refid="release.fileset" />
      <zipfileset prefix="${pcomp}" refid="components.fileset" />
      <zipfileset prefix="${prefix}antbuild" refid="antbuild.fileset" />
      <zipfileset prefix="${prefix}testharness" dir="../testharness" >
        <patternset refid="project.source"/>
        <include name="testcases/**" />
      </zipfileset>

      <zipfileset dir="${ex}/ant" prefix="${pex}/ant"  >
        <patternset refid="project.source"/>
        <include name="xdocs/**" />
      </zipfileset>
      <zipfileset dir="${comp}/ant" prefix="${pcomp}/ant"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/anubis" prefix="${pcomp}/anubis"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/anubisdeployer" prefix="${pcomp}/anubisdeployer"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/arithmetic-testharness" prefix="${pcomp}/arithmetic-testharness"  >
        <patternset refid="project.source"/>
      </zipfileset>
<!--
      <zipfileset dir="${comp}/atom" prefix="${pcomp}/atom"  >
        <patternset refid="project.source"/>
      </zipfileset>
-->
      <zipfileset dir="${comp}/database" prefix="${pcomp}/database"  >
        <patternset refid="project.source"/>
      </zipfileset>
<!--
      <zipfileset dir="${comp}/cargo" prefix="${pcomp}/cargo"  >
        <patternset refid="project.source"/>
      </zipfileset>
-->
      <zipfileset dir="${comp}/dns" prefix="${pcomp}/dns"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/emailer" prefix="${pcomp}/emailer"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/fun" prefix="${pcomp}/fun"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/jetty" prefix="${pcomp}/jetty"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/jmx" prefix="${pcomp}/jmx"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/junit" prefix="${pcomp}/junit"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/loggingservices" prefix="${pcomp}/loggingservices"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/net" prefix="${pcomp}/net"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/persistence" prefix="${pcomp}/persistence"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/quartz" prefix="${pcomp}/quartz"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/scripting" prefix="${pcomp}/scripting"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/sfinstaller" prefix="${pcomp}/sfinstaller"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/slp" prefix="${pcomp}/slp"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/ssh" prefix="${pcomp}/ssh"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/xmpp" prefix="${pcomp}/xmpp"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/xml" prefix="${pcomp}/xml"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/xunit" prefix="${pcomp}/xunit"  >
        <patternset refid="project.source"/>
      </zipfileset>

      <zipfileset dir="${comp}/www" prefix="${pcomp}/www"  >
        <patternset refid="project.source"/>
        <include name="testwar/**" />
      </zipfileset>

<!--      <zipfileset dir="${comp}/" prefix="${pcomp}/"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/" prefix="${pcomp}/"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/" prefix="${pcomp}/"  >
        <patternset refid="project.source"/>
      </zipfileset>
      <zipfileset dir="${comp}/" prefix="${pcomp}/"  >
        <patternset refid="project.source"/>
      </zipfileset>-->
    </zip>
  </target>


  <target name="full-unzip" depends="full-zip">
    <property name="full.unzip.dir" location="${build.dir}/full"/>
    <mkdir dir="${full.unzip.dir}" />
    <unzip src="${full.zip}"
        dest="${full.unzip.dir}"/>
  </target>

  <target name="unzip" depends="full-unzip,minimal-unzip"
      description="create the zip files, then unzip them"/>

  <target name="minimal-tar" depends="ready-to-package">
    <tar destFile="${minimal.tar}" longfile="gnu">
      <tarfileset prefix="${prefix}" refid="root.fileset" />
    </tar>
  </target>

  <target name="minimal-untar" depends="minimal-tar">
    <property name="minimal.untar.dir" location="${build.dir}/minimal"/>
    <mkdir dir="${minimal.untar.dir}" />
    <untar src="${minimal.tar}"
        dest="${minimal.untar.dir}"/>
  </target>

  <target name="full-tar" depends="full-unzip">
    <tar destFile="${full.tar}" longfile="gnu">
      <fileset dir="${full.unzip.dir}" includes="**/*"/>
    </tar>
  </target>


  <target name="full-untar" depends="full-tar">
    <property name="full.untar.dir" location="${build.dir}/fulltar"/>
    <mkdir dir="${full.untar.dir}" />
    <untar src="${full.tar}"
        dest="${full.untar.dir}"/>
  </target>

<!--we zip the system into a dir called core-->
  <target name="src-zip" depends="full-zip">
    <property name="srcprefix" value="smartfrog-${smartfrog.version}/" />
    <zip destfile="${src.zip}">
      <zipfileset src="${full.zip}" prefix="${srcprefix}"/>
      <zipfileset prefix="${srcprefix}smartfrog" dir="../smartfrog">
        <patternset refid="project.source"/>
        <include name="javacc/**" />
        <include name="docs/**" />
        <include name="testCA/**" />
        <include name="constraints/**" />
        <include name="forrest_skin/**" />
        <include name="private/**" />
        <include name="lib/**" />
        <include name="sf-build-version.properties" />
        <include name="*.xml" />
        <include name="*.txt" />
        <include name="parsertargets"/>
      </zipfileset>
    </zip>
  </target>


  <target name="src-unzip" depends="src-zip">
    <property name="src.unzip.dir" location="${build.dir}/srczip"/>
    <mkdir dir="${src.unzip.dir}" />
    <unzip src="${src.zip}"
        dest="${src.unzip.dir}"/>
  </target>

<!-- very very slow, and as people will only expand it with the wrong version of
    tar, troublesome. 
  <target name="src-tar" depends="src-zip">
    <tar destFile="${src.tar}" longfile="gnu" >
      <zipfileset src="${src.zip}"/>
    </tar>
  </target>

  <target name="src-untar" depends="src-tar">
    <property name="src.untar.dir" location="${build.dir}/srctar"/>
    <mkdir dir="${src.untar.dir}" />
    <untar src="${src.tar}"
        dest="${src.untar.dir}"/>
  </target>
-->


  <!--this is quite a destructive test as it kills all artifacts in
  the repository to ensure that all dependencies are satisfiable-->
<!--
  <target name="src-tar-test" depends="src-untar">
    <exec dir="${src.untar.dir}/${srcprefix}" executable="ant"
      failonerror="true">
      <arg value="ivy-purge" />
      <arg value="clean" />
      <arg value="published" />
      </exec>
  </target>
-->

  <target name="src-expand" depends="src-unzip" />

  <target name="untar" depends="full-untar,minimal-untar"
      description="create the tar files, then untar them"/>

  <target name="package" depends="minimal-zip,full-zip,minimal-tar,full-tar,src-zip"/>
  <target name="packaged" depends="package,unzip,untar"/>




</project>



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

  antlib/
    checkstyle/
      antlr.jar
      checkstyle-4.0-beta5.jar
      checkstyle-optional-4.0-beta5.jar
      commons-beanutils-core.jar
      commons-cli.jar
      commons-collections.jar
      commons-logging.jar
    core/
      ant-contrib.jar
      maven-artifact-ant-2.0.2-dep.jar
  doc/
    ivy.ppt
    third_generation_build_process.sxw
  ivy/
    lib/
      ivy-1.4.1.jar
      ivy-2.0.0-alpha-2.jar
    configurations.xml
    ivy-doc.xsl
    ivy.xsd
    ivyconf.xml
  repository/
    berkeleydb/
      je/
        3.2.23/
          je-3.2.23.jar
          je-3.2.23.pom
    javax.jms/
      jms/
        1.1/
          jms-1.1.jar
          jms-1.1.pom
    jetty/
      jasper-compiler/
        4.2.24/
          jasper-compiler-4.2.24.jar
          jasper-compiler-4.2.24.jar.md5
          jasper-compiler-4.2.24.pom
          jasper-compiler-4.2.24.pom.md5
      jasper-runtime/
        4.2.24/
          jasper-runtime-4.2.24.jar
          jasper-runtime-4.2.24.jar.md5
          jasper-runtime-4.2.24.pom
          jasper-runtime-4.2.24.pom.md5
      jetty/
        4.2.24/
          jetty-4.2.24.jar
          jetty-4.2.24.jar.md5
          jetty-4.2.24.pom
          jetty-4.2.24.pom.md5
    kizoom/
      collections-generic/
        4.0.1/
          collections-generic-4.0.1.jar
          collections-generic-4.0.1.pom
      jmockextensions/
        20061027/
          jmockextensions-20061027.jar
          jmockextensions-20061027.pom
      lift/
        20061027/
          lift-20061027.jar
          lift-20061027.pom
    mom4j/
      mom4j/
        1.1/
          mom4j-1.1.jar
          mom4j-1.1.pom
      mom4j-client/
        1.1/
          mom4j-client-1.1.jar
          mom4j-client-1.1.pom
    saxon/
      saxon/
        8.1.1/
          saxon-8.1.1.jar
          saxon-8.1.1.pom
    solid/
      solid-datastore-helper/
        06.00.1001/
          solid-datastore-helper-06.00.1001.jar
      solid-jdbc-driver/
        06.00.1001/
          solid-jdbc-driver-06.00.1001.jar
    xindice/
      xindice/
        1.0/
          xindice-1.0.jar
          xindice-1.0.pom
        1.1/
          xindice-1.1.jar
          xindice-1.1.pom
    xmldb/
      xmldb-api/
      xmldb-common/
      xmldb-xupdate/
    readme.txt
  xml/
    checkstyle/
    checkstyle.xml
    classpaths.xml
    compile-and-jar-mixin.xml
    core.xml
    daemon.xml
    dist.xml
    gui.xml
    ivy-mixin.xml
    javadoc-mixin.xml
    m2.xml
    macros-mixin.xml
    maven-v4_0_0.xsd
    rpm.xml
    security-mixin.xml
    sftasks.xml
    state.xml
    systemtest.xml
    unittest.xml
  .svnignore
  build.xml
  ivy.xml