Commit f693b8ce authored by ISWB Prasetya's avatar ISWB Prasetya
Browse files

updating build scripts

parent 44748140
<project name="T30">
<project name="T3">
<property name="build" value="../build/t3" />
<property name="tests" value="test" />
<property name="libs" value="libs" />
<property name="RELEASEname" value="T3" />
<property name="RELEASEname" value="T3v0.1" />
<property name="dist" value="${build}/dist" />
......@@ -24,7 +24,9 @@
target="1.8">
<compilerarg value="-Xlint"/>
<classpath>
<pathelement location="${libs}/cli/commons-cli-1.2.jar"/>
<fileset dir="${libs}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
......@@ -35,7 +37,7 @@
<copy file="gpl_license.txt" todir="${build}/T3/classes"/>
<echo>Jarring all T3 classes... </echo>
<jar basedir="${build}/classes" destfile="${build}/${RELEASEname}.jar" >
<zipgroupfileset dir="${libs}/cli" includes="commons-cli-1.2.jar"/>
<zipgroupfileset dir="${libs}" includes="**/*.jar"/>
</jar>
</target>
......
......@@ -62,3 +62,15 @@ T3 includes the following third party binary items.
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
T3 support tools include the following third party binary items.
* Daikon: copyright (C) 1998-2008 Massachusetts Institute of Technology;
copyright (C) 2008-2014 University of Washington. This item is subject to the
license: https://plse.cs.washington.edu/daikon/download/doc/daikon.html#License
* Reflections, this item is subject to the WTFPL license.
* Javassist, this item is subject to the MOZILLA PUBLIC LICENSE Version 1.1.
* Guava, this item is subject to the Apache License 2.0.
* JDT, this item is subject to the Eclipse Public License 1.0.
No preview for this file type
<project name="T3">
<project name="T3supportTools">
<!-- Need Java-8. Set JAVA_HOME to Java8 before running this build -->
<property name="build" value="../../build/t3tools" />
<target name="init">
<mkdir dir="${build}/daikon/classes" />
<mkdir dir="${build}/cpscanner/classes" />
<mkdir dir="${build}/standingen/classes" />
<mkdir dir="${build}/configure/classes" />
<mkdir dir="${build}/classes" />
</target>
<target name="t3daikon" depends="init" description="Build t3daikon">
<echo>Compiling... </echo>
<target name="compileT3daikon" depends="init" description="Compile t3daikon">
<echo>Compiling t3daikon... </echo>
<javac srcdir="./daikon/src"
compiler="javac1.8"
debug="on"
destdir="${build}/daikon/classes"
destdir="${build}/classes"
source="1.8"
target="1.8">
<compilerarg value="-Xlint"/>
<classpath>
<pathelement location="./daikon/libs/daikon.jar"/>
<pathelement location="./daikon/libs/T3v0.jar"/>
<fileset dir="./daikon/libs">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<echo>Jarring... </echo>
<jar basedir="${build}/daikon/classes" destfile="${build}/t3daikon.jar" >
</jar>
</target>
<target name="cpscanner" depends="init" description="Build cp-scanner">
<echo>Compiling... </echo>
<target name="compileCPscanner" depends="init" description="Compile cp-scanner">
<echo>Compiling cpscanner... </echo>
<javac srcdir="./cpscanner/src"
compiler="javac1.8"
debug="on"
destdir="${build}/cpscanner/classes"
destdir="${build}/classes"
source="1.8"
target="1.8">
<compilerarg value="-Xlint"/>
<classpath>
<pathelement location="./cpscanner/libs/reflections-0.9.9-RC1-uberjar.jar"/>
<pathelement location="./cpscanner/libs/javassist.jar"/>
<pathelement location="./cpscanner/libs/guava-18.0.jar"/>
<fileset dir="./cpscanner/libs">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<echo>Jarring... </echo>
<jar basedir="${build}/cpscanner/classes" destfile="${build}/cpscanner.jar" >
<zipgroupfileset dir="./cpscanner/libs/" includes="reflections-0.9.9-RC1-uberjar.jar"/>
<zipgroupfileset dir="./cpscanner/libs/" includes="javassist.jar"/>
<zipgroupfileset dir="./cpscanner/libs/" includes="guava-18.0.jar"/>
</jar>
</target>
<target name="standingen" depends="init" description="Build standIn generator">
<echo>Compiling... </echo>
<target name="compileStandingen" depends="init" description="Compile standIn generator">
<echo>Compiling standIn generator ... </echo>
<javac srcdir="./standingen/src"
compiler="javac1.8"
debug="on"
destdir="${build}/standingen/classes"
destdir="${build}/classes"
source="1.8"
target="1.8">
<compilerarg value="-Xlint"/>
</javac>
<echo>Jarring... </echo>
<jar basedir="${build}/standingen/classes" destfile="${build}/standingen.jar" >
</jar>
</target>
<target name="configure" depends="init" description="Build the configure-lib">
<echo>Compiling... </echo>
<target name="compileT3configure" depends="init" description="Compile the T3-configure-lib">
<echo>Compiling T3 configure-lib... </echo>
<javac srcdir="./configure/src"
compiler="javac1.8"
debug="on"
destdir="${build}/configure/classes"
destdir="${build}/classes"
source="1.8"
target="1.8">
<compilerarg value="-Xlint"/>
<classpath>
<pathelement location="./configure/libs/T3v0.jar"/>
<pathelement location="./daikon/libs/T3.jar"/>
</classpath>
</javac>
<echo>Jarring... </echo>
<jar basedir="${build}/configure/classes" destfile="${build}/configure.jar" >
</jar>
</target>
<target name="all" description="Building all tools..." depends="t3daikon,cpscanner,standingen,configure">
<target name="compileAll" description="Compiling all tools..." depends="compileT3daikon,compileCPscanner,compileStandingen,compileT3configure">
</target>
<!-- this will jar all those support tools, and also add T3-static into the jar.
Also jar along all 3rd party dependency.
Does not include T3 itself.
-->
<target name="jar" description="Jarring all T3 support tools..." depends="compileAll">
<echo>Jarring all T3 support tools classes... </echo>
<jar basedir="${build}/classes" destfile="${build}/t3SupportTools.jar" >
<zipgroupfileset dir="./cpscanner/libs" includes="*.jar"/>
<zipgroupfileset dir="./daikon/libs" includes="daikon.jar"/>
<zipgroupfileset dir="." includes="T3static_v0.jar"/>
</jar>
</target>
<target name="clean" description="Cleaning.">
<echo>Cleaning... </echo>
<delete dir="${build}" />
......
......@@ -115,7 +115,7 @@ public class SBSTConfWizard {
// test tru a subclass instead:
System.err.println("** " + CUT.getName()
+ " is an abstract class, adt-compatible, but no creator method!" ) ;
Class replacement = t3.impMap.getImp1(CUT) ;
Class replacement = t3.impMap.getRndImp(CUT) ;
if (replacement != null) {
System.err.println("** Targeting " + replacement.getName() + " instead...") ;
configureWorker(replacement,configMaker,customValueGen,inhMap,t3instances) ;
......
......@@ -16,6 +16,11 @@ implements a given abstract class. It generates a source file, then compiles
it. Complicated :) Note that in-memoty generated class cannot be use during
the replay of a test suite! Hence the need to generate source code.
* configure (jar library): to auto configure T3
* configure (jar library): to auto configure T3
* A jar of T3static is included, which contains a tool to do some static
analysis on Java source code. Currently, it only collect constants :D
* The build file can collect all these tools and dependency in a single jar.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment