<!-- == Saffron preprocessor and data engine == $Id: //guest/julian_hyde/saffron/build.xml#3 $ == Copyright (C) 2002 Julian Hyde <julian.hyde@mail.com> == == This library is free software; you can redistribute it and/or == modify it under the terms of the GNU Library General Public == License as published by the Free Software Foundation; either == version 2 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 == Library General Public License for more details. == == You should have received a copy of the GNU Library 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. == == See the COPYING file located in the top-level-directory of == the archive of this library for complete text of license. --> <project name="saffron" default="compile"> <property environment="myenv"/> <property name="project.location" location="."/> <property name="lib.location" location="${project.location}/lib"/> <property file="${project.location}/project_build.properties"/> <property name="project.build.debug" value="on"/> <property name="Name" value="Saffron"/> <property name="name" value="saffron"/> <property name="version" value="0.1"/> <!-- uncomment this line to use jikes --> <property name="build.compiler" value="jikes"/> <!-- the following lines affect how jikes behaves --> <property name="build.compiler.emacs" value="true"/> <property name="build.compiler.pedantic" value="false"/> <property name="build.compiler.fulldepend" value="false"/> <!-- =================================================================== Set the properties related to paths =================================================================== --> <property name="src.dir" value="src"/> <property name="java.dir" value="${src.dir}/main"/> <property name="lib.dir" value="lib"/> <property name="doc.dir" value="doc"/> <property name="resource.location" location="resource"/> <property name="javadoc.dir" value="${doc.dir}/api"/> <property name="classes.dir" value="classes"/> <property name="dist.name" value="${name}-${version}"/> <property name="dist.base" value="distribution"/> <property name="dist.dir" value="dist"/> <property name="demo.dir" value="demo"/> <property name="dist.src.file" value="${dist.dir}/${dist.name}-src.zip"/> <property name="dist.data.file" value="${dist.dir}/${dist.name}-data.zip"/> <property name="dist.bin.file" value="${dist.dir}/${dist.name}-bin.zip"/> <property name="dist.jar.file" value="${dist.dir}/${name}.jar"/> <path id="project.classpath"> <pathelement location="${classes.dir}"/> <pathelement location="${lib.dir}/xerces.jar"/> <pathelement location="${lib.dir}/javaCupClasses.zip"/> </path> <!-- must set this!! --> <property name="javacc.home" location="e:/javacc2.1"/> <taskdef name="JavaCC" classname="org.apache.tools.ant.taskdefs.optional.javacc.JavaCC"/> <!-- =================================================================== Properties for running the FoodMart test =================================================================== --> <!-- Comma-separated list of jdbc drivers; for example, "org.hsqldb.jdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver" --> <property name="saffron.jdbcDrivers" value="sun.jdbc.odbc.JdbcOdbcDriver"/> <!-- The URL of the folder which contains the resource files. --> <property name="saffron.resourceURL" value="file:///${resource.location}"/> <target name="help"> <echo> You must specify a specific project target when using the ANT build. Targets are one of the following: - all Cleans, compiles all classes, and runs a simple test. - compile Compiles functional classes only. - clean Deletes build output. - test Runs a simple test. </echo> </target> <target name="all" depends="clean,compile,test"> </target> <target name="test"/> <target name="clean"> <delete includeEmptyDirs="true" quiet="true"> <fileset dir="${classes.dir}" includes="**/*.class"/> <!-- ParserTokenManager.java is generated too, but don't delete, cuz we have modified it and checked it in. --> <fileset dir="${java.dir}" includes="openjava/tools/parser/Parser.java, openjava/tools/parser/TokenMgrError.java, openjava/tools/parser/ParseException.java, openjava/tools/parser/JavaCharStream.java, openjava/tools/parser/Token.java, openjava/tools/parser/ASCII_UCodeESC_CharStream.java"/> </delete> </target> <target name="prepare"> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="prepare,parser,compileNoParser"/> <target name="compileNoParser" depends="prepare"> <javac srcdir="${java.dir}" destdir="${classes.dir}" debug="${project.build.debug}" classpathref="project.classpath"> <include name="**/*.java" /> <exclude name="openjava/ptree/util/ParseTreeTranslator/java" /> <exclude name="openjava/debug/gui/ColoredSourceWriter.java" /> <exclude name="openjava/debug/gui/SourceCodeViewer.java" /> <exclude name="openjava/ptree/ExpressionObject.java" /> <exclude name="openjava/ptree/SetExpression.java" /> <exclude name="openjava/ptree/util/ParseTreeTranslator.java" /> <exclude name="saffron/util/Obsolete.java" /> </javac> </target> <!-- generates TokenMgrError.java, ParseException.java, JavaCharStream.java, Token.java, ASCII_UCodeESC_CharStream.java --> <target name="parser"> <JavaCC target="${java.dir}/openjava/tools/parser/SaffronParser.jj" javacchome="${javacc.home}" buildtokenmanager="false"/> </target> <target name="etags"> <exec dir="${project.location}" executable="find" output="javaFiles"> <arg line=". -name "*.java" -print"/> </exec> <exec dir="${project.location}" executable="ctags"> <arg line="-e"/> <arg line="-L javaFiles"/> </exec> <delete file="${project.location}/javaFiles" quiet="true"/> </target> <target name="srczip"> <mkdir dir="${dist.dir}" /> <zip zipfile="${dist.src.file}" update="true"> <zipfileset dir="." prefix="${dist.name}" includes="**/*.java, **/*.jj, **/*.html, **/*.css, build.xml, build.bat, LICENSE.html, README.txt, VERSION.txt" excludes="${javadoc.dir}/**, **/*~" /> </zip> </target> <target name="binzip" depends="javadoc"> <mkdir dir="${dist.dir}" /> <zip zipfile="${dist.bin.file}" update="true"> <zipfileset dir="." prefix="${dist.name}" includes="${javadoc.dir}/**/*, LICENSE.html, README.txt, VERSION.txt" excludes="**/*~"/> <zipfileset dir="${dist.dir}" prefix="${dist.name}/lib" includes="${name}.jar"/> </zip> </target> <target name="jar"> <mkdir dir="${dist.dir}" /> <zip zipfile="${dist.jar.file}" update="true"> <zipfileset dir="${classes.dir}" includes="**/*.class"/> <zipfileset dir="." includes="LICENSE.html, README.txt, VERSION.txt"/> </zip> </target> <target name="javadoc"> <mkdir dir="${javadoc.dir}" /> <!-- <copy file="${doc.dir}/overview.html" toFile="${java.dir}/overview.html"/> --> <javadoc sourcepath="${java.dir}" destdir="${javadoc.dir}" packagenames="openjava.*, JP.*, saffron.*" overview="${java.dir}/overview.html"/> <!-- <delete file="${java.dir}/overview.html"/> --> </target> </project>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 1853 | Julian Hyde |
saffron: Further improve binding of rows to variables. |
||
#8 | 1801 | Julian Hyde |
saffron: add ObjectSchema; rules can now be matched more than once; started to implement correlations in queries in from list. |
||
#7 | 1748 | Julian Hyde |
saffron: convert unit tests to JUnit; add CallingConvention.ITERABLE; lots of other stuff; release 0.1. |
||
#6 | 1485 | Julian Hyde | Saffron/Mondrian: John Sichi's feedback. | ||
#5 | 1479 | Julian Hyde |
Saffron. More files. Split out build.properties. Fix bootstrap problem by creating a dummy OpenJavaTask. |
||
#4 | 1474 | Julian Hyde |
saffron: Aggregations are working. Renamed 'aggregator' to 'aggregation'. |
||
#3 | 1467 | Julian Hyde |
saffron: First saffron check-in; incorporate my changes to openjava. |
||
#2 | 1462 | Julian Hyde | saffron: check in OpenJava20011117 source files, without any of my modifications | ||
#1 | 1461 | Julian Hyde |
saffron: First check in. Just documents, and the unmodified OpenJava 20001010 source files. |