neman / oldbuild.xml

<!--
  Copyright (c) 2008 Krešimir Šojat. All rights reserved.  The use and
  distribution terms for this software are covered by the Common
  Public License 1.0 (http://www.opensource.org/licenses/cpl1.0.php)
  which can be found in the file CPL.TXT at the root of this
  distribution.  By using this software in any fashion, you are
  agreeing to be bound by the terms of this license.  You must not
  remove this notice, or any other, from this software.
-->
<project name='neman' basedir='.' xmlns:ivy='antlib:org.apache.ivy.ant'>

    <import file='${basedir}/common.xml'/>
    <import file='${common.dir}/common.xml' optional='true'/>

    <property name='build.classes' location='${build}/classes'/>
    <property name='build.jar'     location='${build}/neman.jar'/>

    <!--
    Neman targets.
    -->

    <target name='resolve' depends='ivy-install' unless='skip.resolve'>
        <ivy:settings file='${basedir}/ivysettings.xml'/>
        <ivy:resolve file='${basedir}/ivy.xml'/>
        <ivy:retrieve/>
    </target>

    <target name='build' depends='resolve, build-docs'>
        <mkdir dir='${build.classes}'/>

        <path id='clojure.compiler.classpath'>
            <fileset dir='${lib}'>
                <include name='**/*.jar'/>
            </fileset>
        </path>

        <java classname='clojure.lang.Compile'
            classpath='${build.classes}:${src}'
            classpathref='clojure.compiler.classpath'>
            <sysproperty key='clojure.compile.path' value='${build.classes}'/>
            <arg value='net.ksojat.neman.cli'/>
            <arg value='net.ksojat.neman.core'/>
            <arg value='net.ksojat.neman.jetty'/>
            <arg value='net.ksojat.neman.json'/>
            <arg value='net.ksojat.neman.web'/>
            <arg value='net.ksojat.neman.xml'/>
            <arg value='net.ksojat.neman.storage'/>
            <arg value='net.ksojat.neman.textile'/>
            <arg value='net.ksojat.neman.css'/>
            <arg value='net.ksojat.neman.cells'/>
	    <arg value='net.ksojat.neman.swing'/>
        </java>

        <jar destfile='${build.jar}'>
            <zipfileset dir='${build.classes}'/>
        </jar>

    </target>

    <target name='dist' depends='dist-docs'/>

    <target name='publish' depends='build'>
        <ivy:publish
            forcedeliver='true'
            overwrite='true'
            resolver='neman'
            status='release'
            pubrevision='0.0.1'
            artifactspattern='${build}/[artifact].[ext]'/>
    </target>

    <target name='test' depends='build'>
        <path id='test.classpath'>
            <fileset dir='${lib}'>
                <include name='**/*.jar'/>
            </fileset>
        </path>

        <clojure
            file='${test}/test.clj'
            classpath='${build.classes}:${src}'
            classpathref='test.classpath'/>
    </target>
</project>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.