On May 19, 2009, at 14:28, aperotte wrote:

> I'm glad you got it working.  I'll have to look into compiling it with
> an earlier version of java.
>
> I'm actually not using ant for this project just yet.  I'm compiling
> with javac.

A working build.xml is attached - feel free to add it!

> I agree, it's unfortunate that matrix carries the connotation of 2D.
> PersistentNDArray, PersistentDataCube, PersistentTensor?
> PersistentMatrix felt the cleanest, but it can definitely be changed.

Not Tensor please, that's something else again (it implies  
geometrical transformation properties). NDArray is fine, DataCube is  
fine as well!

Konrad.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

<?xml version="1.0"?>
<project name="persistentmatrix" default="jar">

  <description>
    Compile persistentmatrix into a Java JAR.
  </description>

  <property name="src" location="src" />
  <property name="build" location="build" />
  <property name="lib" location="lib" />
  <property name="jarfile" location="persistentmatrix.jar" />

  <target name="init">
    <mkdir dir="${build}" />
  </target>
  
  <target name="compile-java" depends="init"
          description="Compile Java sources.">
    <javac srcdir="${src}" destdir="${build}" includeJavaRuntime="yes"
           debug="true" target="1.5">
      <classpath>
        <path location="${src}"/>
        <path location="${clojure.jar}"/>
      </classpath>
    </javac>
  </target>

  <target name="compile-clojure" depends="compile-java" 
          description="Compile Clojure sources.">
    <java classname="clojure.lang.Compile" failonerror="true">
      <classpath>
        <path location="${src}"/>
        <path location="${clojure.jar}"/>
      </classpath>
      <sysproperty key="clojure.compile.path" value="${build}"/>
    </java>
  </target>

  <target name="jar" depends="compile-clojure">
    <jar jarfile="${jarfile}" >
      <fileset dir="${build}" includes="**/*.class"/>
      <manifest>
        <attribute name="Class-Path" value="."/>
      </manifest>
    </jar>
  </target>
  
  <target name="clean">
    <delete file="${jarfile}"/>
    <delete dir="${build}" />
  </target>
  
</project>

Reply via email to