diff options
author | Rich Hickey <richhickey@gmail.com> | 2007-10-30 01:06:24 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2007-10-30 01:06:24 +0000 |
commit | 540e1195c330298ecb3a29287643a54b59278522 (patch) | |
tree | 0cf839eadd0a4f245e2f4bddf51b30cac3f57d55 | |
parent | d4de902fc7cdcafa0a2ab4c3d543253590e4e6b4 (diff) |
added (non-definitive) ant and maven build scripts
-rw-r--r-- | build.xml | 34 | ||||
-rw-r--r-- | pom.xml | 41 |
2 files changed, 75 insertions, 0 deletions
diff --git a/build.xml b/build.xml new file mode 100644 index 00000000..33c12c8e --- /dev/null +++ b/build.xml @@ -0,0 +1,34 @@ +<project name="clojure" default="jar"> + + <description> + Build with "ant jar" and then start the REPL + via "java -cp clojure.jar clojure.lang.Repl src/boot.clj". + </description> + + <property name="src" location="src"/> + <property name="jsrc" location="${src}/jvm"/> + <property name="build" location="classes"/> + <property name="clojure_jar" location="clojure.jar"/> + <property name="bootclj" location="${src}/boot.clj"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + </target> + + <target name="compile" depends="init" + description="Compile Java sources."> + <javac srcdir="${jsrc}" destdir="${build}" includeJavaRuntime="yes"/> + </target> + + <target name="jar" depends="compile" + description="Create jar file."> + <jar jarfile="${clojure_jar}" basedir="${build}"/> + </target> + + <target name="clean" + description="Remove autogenerated files and directories."> + <delete dir="${build}"/> + </target> + +</project> diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..2d380bcd --- /dev/null +++ b/pom.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>jvm.clojure</groupId> + <artifactId>clojure-lang</artifactId> + <name>clojure-lang</name> + <version>1.0-SNAPSHOT</version> + <url>http://clojure.sourceforge.net/</url> + <build> + <sourceDirectory>src/jvm</sourceDirectory> + <scriptSourceDirectory>src</scriptSourceDirectory> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + <optimize>true</optimize> + </configuration> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>asm</groupId> + <artifactId>asm</artifactId> + <version>3.0</version> + </dependency> + </dependencies> +</project> |