Update of /cvsroot/mocklib/mocklib3/bldfiles/bak
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24740/bldfiles/bak
Added Files:
createdist.xml directories.txt release.xml ant.properties
dependencies.xml
Log Message:
original commit of mocklib2 that will become mocklib3
--- NEW FILE: directories.txt ---
#
# NOTE: These are the properties used by build.xml and dist.xml
# override them in ant.properties. Overriding them here will not
# affect the build in any way. These are purely documentation here.
#-----------------------------------------------------------------------
# OUTPUT DIRECTORIES
#-----------------------------------------------------------------------
generated =output
intermediate =${generated}/misc
#will contain a generated manifest
#any other intermediate files will go here too(none yet)
build =${generated}/build
#will contain all the *.class files after compile
#will contain all the *.jpg files from ${properties}
#will contain all the *.properties files from ${properties}
#will contain all the *.gif files from ${properties}
#will contain all the *.html files from ${properties}
#will contain all the *.* files from ${properties}
#will NOT contain *.html, *.htm, *.jpg, *.gif from ${javacode}
jardist =${generated}/jardist
#will contain a *.jar containing everything in ${build}
dist =${generated}/dist
#contains the release that gets released to the world
codecov =${generated}/codecoverage
#contains the code coverage reports of what the unit tests
#covered
codecov.temp =${generated}/codecoveragetemp
#intermediate directory that contains instrumented classes to
#run testall against so a code coverage report can be spit out.
javadoc =${generated}/javadoc
#contains the javadoc of biz.xsoftware.api
junit.results =${generated}/test_results
#contains junit test results
staging =${generated}/staging
projstaging =${generated}/staging/${name}
#will contain all *.html generated by javadoc
#will contain all *.html from ${javacode} directory(such as package.html)
#will contain all *.jpg from ${javacode} directory
#will contain all *.gif from ${javacode} directory
rmi.stubs =${generated}/rmistubs
#contains all Remote*.class files copied from ${build}
#contains all *_stub.class files copied from ${build}
#contains all *_skel.class files copied from ${build}
#this directory is only created if RMI*.class exists
test.area =${generated}/tests
#This is sometimes created by JUnit tests to do temporary
#testing. It usually gets deleted afterwards.
#-----------------------------------------------------------------------
# INPUT DIRECTORIES - don't change these after the project is started.
#-----------------------------------------------------------------------
input =input
#contains all stuff that is an input into the build
config =${input}
#contains build.xml for the module, and any other build scripts
#plus build property files
javacode =${input}/javasrc
#Contains all *.java source files
#Contains all *.html files needed by javadoc
#Contains all *.jpg files needed by javadoc
#Contains all *.gif files needed by javadoc
#Contains all *.* files needed by javadoc
#Will NOT contain any *.jpg, *.gif, *.html, *.htm needed by application
#Use ${properties} for *.jpg, *.gif, *.html, *.htm needed by application
properties =${input}/properties
#contains *.property files for i18n
#contains *.gif needed for application
#contains *.* any other resource files needed for application
lib =${input}/lib
#contains all *.jar needed to run the app
#does not contain *.jars needed to compile the app(such as junit.jar)
staging.in =${input}/staging
#build copies everything from here to ${staging} so staging area can just be
#zipped up or rpm'd up or whatever during the dist target.
#typically, there will be another directory in here called <project>
#or something. Some projects won't but most will.
scripts =${input}/tests/scripts
#DO NOT MODIFY. This is hardcoded in TestSuiteAllScripts.java.
#contains all *.xml abbot scripts to do GUI testing.
test.input =${input}/tests/input
#for miscellaneous input to junit tests.
#-----------------------------------------------------------------------
# MISCELLANEOUS
#-----------------------------------------------------------------------
junit.pattern1=biz/xsoftware/test/**/Test*.class
junit.pattern2=**/test/Test*.class
build.sysclasspath=ignore
# Change this value and I call you a complete idiot(cp = classpath)
# ignore - trust build file to get the cp right
# first - concatenate build file cp AFTER build runners cp
# last - concatenate build runners cp AFTER build file cp
#output = build.log
#uncomment this to activate the logging
--- NEW FILE: ant.properties ---
#-----------------------------------------------------------------------
# MANIFEST and JAR properties - Make sure you change these to your settings.
#-----------------------------------------------------------------------
name = mocklib
#used as the jar file name(ie. ${name}.jar)
#used as zip file name(ie. ${name}-version.jar)
#used as the directory staging name
#version info may be retrieved using java -jar ${name}.jar -version
manifest.mainclass = TOOLS.JAVA.Main
#The class that is run when java -jar xxxx.jar is run
manifest.title = MockLib
manifest.vendor = http://sourceforge.net/projects/mockobject
manifest.builder = Dean Hiller
copyright = Copyright © 2000 Dean Hiller All Rights Reserved.
javadoc.title = MockObject
javadoc.bottom = If you would like a shared copyright, contact me at dea...@us...<br> \
<a href=http://sourceforge.net> \
<IMG src=http://sourceforge.net/sflogo.php?group_id=113040 width=210 height=62 border=0 alt=SourceForge Logo> \
</a>
#-----------------------------------------------------------------------
# Properties to run the program using the "run" target in build.xml(ie. build run)
# Just try ./build run to execute org.NO.MAIN.YET below(of course, that class
# doesn't exist, so I would suggest changing that.
#-----------------------------------------------------------------------
client.to.run = org.NO.MAIN.YET
#Class run when "build run" target is used
client.args =
#params to the java app for the run target to run the application
client.jvm.args = -enableassertions
#params to the JVM for the run target to run the application
junit.pattern2=**/examples/**/Test*.class
--- NEW FILE: release.xml ---
<!-- This file is run after testall. It is primarily so you can
move the distribution built in createdist.xml and code coverage
web pages anywhere you want after the build is done -->
<project name="std_buildfile" default="release" basedir="..">
<property name="misc" value="${input}/misc"/>
<property name="javadoc.examples.title" value="MockLib Examples"/>
<!-- temporary until we fix buildtemplate to not erase every folder in tools -->
<property name="taglet" value="${tool.dir}/taglet"/>
<property name="user" value="fastdragon"/>
<!--
***********************************************************************
JAVADOC TARGET
***********************************************************************
-->
<target name="javadocimpl" description="Generate JavaDoc">
<mkdir dir="${projstaging}/impl"/>
<copy todir="${projstaging}/impl">
<fileset dir="${javacode}" excludes="**\*.java"/>
</copy>
<echo message="list is at ${misc}"/>
<echo message="package lists in=${package.list}"/>
<javadoc packagenames="biz.xsoftware.mock.*"
sourcepath="${javacode}"
destdir="${projstaging}/impl"
author="true"
version="true"
use="true"
public="yes"
overview="${misc}/mockoverview.html"
windowtitle="${javadoc.title} ${version}"
doctitle="${javadoc.title} ${version}"
Verbose="true">
<!-- classpath needed to link up to third_party libs without 100's of warnings -->
<classpath>
<path refid="tool.and.lib"/>
</classpath>
<fileset dir="${javacode}">
<include name="**/.java"/>
</fileset>
<doctitle><![CDATA[<h1>${javadoc.title} ${version}</h1>]]></doctitle>
<bottom><![CDATA[<i>${copyright}</i><br>
${javadoc.bottom}]]>
</bottom>
<link offline="true" href="http://java.sun.com/j2se/1.4.2/docs/api" packagelistLoc="${package.list}/jdk"/>
<link offline="true" href="http://www.junit.org/junit/javadoc/3.8.1" packagelistLoc="${package.list}/junit"/>
</javadoc>
</target>
<target name="javadocexamples" depends="javadocimpl" description="Generate JavaDoc">
<mkdir dir="${projstaging}/examples"/>
<copy todir="${projstaging}/examples">
<fileset dir="${javacode}" excludes="**\*.java"/>
</copy>
<echo message="list is at ${misc}"/>
<javadoc packagenames="biz.xsoftware.examples.*"
sourcepath="${javacode}"
destdir="${projstaging}/examples"
author="true"
version="true"
use="true"
private="yes"
overview="${misc}/examplesoverview.html"
windowtitle="${javadoc.examples.title} ${version}"
doctitle="${javadoc.examples.title} ${version}"
Verbose="true"
breakiterator="yes"
stylesheetfile="${taglet}/stylesheet.css">
<taglet name="biz.xsoftware.showcode.ShowCodeTaglet" path="${taglet}/showcode.jar"/>
<!-- classpath needed to link up to third_party libs without 100's of warnings -->
<classpath>
<path refid="tool.and.lib"/>
</classpath>
<fileset dir="${javacode}">
<include name="**/.java"/>
</fileset>
<doctitle><![CDATA[<h1>${javadoc.examples.title} ${version}</h1>]]></doctitle>
<bottom><![CDATA[<i>${copyright}</i><br>
${javadoc.bottom}]]>
</bottom>
<link offline="true" href="http://java.sun.com/j2se/1.4.2/docs/api" packagelistLoc="${package.list}/jdk"/>
<link offline="true" href="http://www.junit.org/junit/javadoc/3.8.1" packagelistLoc="${package.list}/junit"/>
<link offline="false" href="../impl"/>
</javadoc>
</target>
<target name="createdist" depends="javadocexamples">
<copy todir="${projstaging}">
<fileset dir="${codecov}"/>
<fileset dir="${jardist}" includes="${jar.name}"/>
</copy>
<!--
<copy file="README" tofile="${dist.build.dir}/README" overwrite="yes" />
<copy file="LICENSE" tofile="${dist.build.dir}/LICENSE" overwrite="yes" />
-->
<!-- package everything up nice and tidy -->
<zip zipfile="${dist}/${name}-${version}.zip" basedir="${staging}" includes="**" update="yes" />
<!--tar tarfile="${dist.dir}/${name}-${version}.tar" basedir="${dist.build.dir}" includes="**" />
<gzip zipfile="${dist.dir}/${name}-${version}.tar.gz" src="${dist.dir}/${name}-${version}.tar" /-->
</target>
<!-- this is run after createdist is run and after testall is
run so codecoverage, the release, can all be posted to some
website -->
<target name="release" depends="createdist" if="pw">
<echo message="***************************************************************"/>
<echo message="***************************************************************"/>
<echo message=" Delivering zip=${name}-${version}.zip to"/>
<echo message=" sourceforge ftp site, and to ${name} website"/>
<echo message=" The website will be updated at mocklib.sourceforge.net"/>
<echo message=" Please finish this and go to sourceforge.net/projects/mocklib"/>
<echo message=" to pick up the release and release it to the world"/>
<echo message=""/>
<echo message=" ps. This will take a while"/>
<echo message="***************************************************************"/>
<echo message="***************************************************************"/>
<ftp server="upload.sourceforge.net"
remotedir="incoming"
userid="anonymous"
password="${user}@user.sourceforge.net">
<fileset dir="${dist}">
<include name="${name}-${version}.zip"/>
</fileset>
</ftp>
<scp file="${dist}/${name}-${version}.zip"
todir="${user}@shell.sourceforge.net:/home/groups/m/mo/mocklib"
password="${pw}"/>
<sshexec host="shell.sourceforge.net"
username="${user}"
password="${pw}"
command="rm -rf /home/groups/m/mo/mocklib/htdocs/*"/>
<sshexec host="shell.sourceforge.net"
username="${user}"
password="${pw}"
command="unzip /home/groups/m/mo/mocklib/${name}-${version}.zip -d /home/groups/m/mo/mocklib/htdocs/"/>
<sshexec host="shell.sourceforge.net"
username="${user}"
password="${pw}"
command="mv /home/groups/m/mo/mocklib/htdocs/${name}/* /home/groups/m/mo/mocklib/htdocs"/>
<sshexec host="shell.sourceforge.net"
username="${user}"
password="${pw}"
command="rm /home/groups/m/mo/mocklib/${name}*.zip"/>
</target>
</project>
--- NEW FILE: dependencies.xml ---
<walls>
<!-- DO NOT MODIFY NEXT TWO LINES -->
<package name="manifest" package="biz.xsoftware.manifest.**"/>
<!-- Fill this file in with your package design -->
<package name="impl" package="biz.xsoftware.mock.**"/>
<package name="examples" package="biz.xsoftware.examples.**" depends="impl"/>
<package name="tests" package="biz.xsoftware.test.**" depends="impl"/>
</walls>
--- NEW FILE: createdist.xml ---
<project name="std_buildfile" default="createdist" basedir="..">
<!--
================================================================================
Creates the distribution
================================================================================
-->
<target name="createdist" description="Creates the project specific distribution">
<!-- The following commented out code already happens in the build.xml file -->
<!--mkdir dir="${dist}"/>
<mkdir dir="${staging}"/>
<copy todir="${staging}">
<fileset dir="${staging.in}" includes="**/*"/>
</copy-->
</target>
</project>
|