User: reverbel
Date: 02/02/15 13:49:52
Added: iiop build.bat build.sh build.xml
Log:
Buildmagic files added.
Revision Changes Path
1.1 contrib/iiop/build.bat
Index: build.bat
===================================================================
@echo off
REM ======================================================================
REM
REM This is the main entry point for the build system.
REM
REM Users should be sure to execute this file rather than 'ant' to ensure
REM the correct version is being used with the correct configuration.
REM
REM ======================================================================
REM
REM $Id: build.bat,v 1.1 2002/02/15 21:49:52 reverbel Exp $
REM
REM Authors:
REM Jason Dillon <[EMAIL PROTECTED]>
REM Sacha Labourey <[EMAIL PROTECTED]>
REM
REM ******************************************************
REM Ignore the ANT_HOME variable: we want to use *our*
REM ANT version and associated JARs.
REM ******************************************************
REM Ignore the users classpath, cause it might mess
REM things up
REM ******************************************************
SETLOCAL
set CLASSPATH=
set ANT_HOME=
set JAXP_DOM_FACTORY=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
set JAXP_SAX_FACTORY=org.apache.crimson.jaxp.SAXParserFactoryImpl
REM set JAXP_DOM_FACTORY=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
REM set JAXP_SAX_FACTORY=org.apache.xerces.jaxp.SAXParserFactoryImpl
set ANT_OPTS=-Djava.protocol.handler.pkgs=planet57.net.protocol
-Djavax.xml.parsers.DocumentBuilderFactory=%JAXP_DOM_FACTORY%
-Djavax.xml.parsers.SAXParserFactory=%JAXP_SAX_FACTORY% -Dbuild.script=build.bat
REM ******************************************************
REM - "for" loops have been unrolled for compatibility
REM with some WIN32 systems.
REM ******************************************************
set NAMES=tools;tools\ant;tools\apache\ant
set SUBFOLDERS=..;..\..;..\..\..;..\..\..\..
REM ******************************************************
REM ******************************************************
SET EXECUTED=FALSE
for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6
goto :EOF
REM ******************************************************
REM ********* Search for names in the subfolders *********
REM ******************************************************
:subLoop
for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%1\bin\ant.bat %2 %3 %4 %5 %6 %7
goto :EOF
REM ******************************************************
REM ************ Test if ANT Batch file exists ***********
REM ******************************************************
:testIfExists
if exist %1 call :BatchFound %1 %2 %3 %4 %5 %6 %7 %8
goto :EOF
REM ******************************************************
REM ************** Batch file has been found *************
REM ******************************************************
:BatchFound
if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8
set EXECUTED=TRUE
goto :EOF
REM ******************************************************
REM ************* Execute Batch file only once ***********
REM ******************************************************
:ExecuteBatch
echo Calling %1 %2 %3 %4 %5 %6 %7 %8
call %1 %2 %3 %4 %5 %6 %7 %8
:end
pause
1.1 contrib/iiop/build.sh
Index: build.sh
===================================================================
#!/bin/sh
### ====================================================================== ###
## ##
## This is the main entry point for the build system. ##
## ##
## Users should be sure to execute this file rather than 'ant' to ensure ##
## the correct version is being used with the correct configuration. ##
## ##
### ====================================================================== ###
# $Id: build.sh,v 1.1 2002/02/15 21:49:52 reverbel Exp $
PROGNAME=`basename $0`
DIRNAME=`dirname $0`
GREP="grep"
ROOT="/"
# Ignore user's ANT_HOME if it is set
ANT_HOME=""
# the default search path for ant
ANT_SEARCH_PATH="\
tools
tools/ant \
tools/apache/ant \
ant"
# the default build file name
ANT_BUILD_FILE="build.xml"
# the default arguments
ANT_OPTIONS="-find $ANT_BUILD_FILE"
# the jaxp parser to use
if [ "x$JAXP" = "x" ]; then
# Default to crimson
JAXP="crimson"
fi
#
# Helper to complain.
#
die() {
echo "${PROGNAME}: $*"
exit 1
}
#
# Helper to source a file if it exists.
#
maybe_source() {
for file in $*; do
if [ -f "$file" ]; then
. $file
fi
done
}
search() {
search="$*"
for d in $search; do
ANT_HOME="`pwd`/$d"
ANT="$ANT_HOME/bin/ant"
if [ -x "$ANT" ]; then
# found one
echo $ANT_HOME
break
fi
done
}
#
# Main function.
#
main() {
# if there is a build config file. then source it
maybe_source "$DIRNAME/build.conf" "$HOME/.build.conf"
# try the search path
ANT_HOME=`search $ANT_SEARCH_PATH`
# try looking up to root
if [ "x$ANT_HOME" = "x" ]; then
target="build"
_cwd=`pwd`
while [ "x$ANT_HOME" = "x" ] && [ "$cwd" != "$ROOT" ]; do
cd ..
cwd=`pwd`
ANT_HOME=`search $ANT_SEARCH_PATH`
done
# make sure we get back
cd $_cwd
if [ "$cwd" != "$ROOT" ]; then
found="true"
fi
# complain if we did not find anything
if [ "$found" != "true" ]; then
die "Could not locate Ant; check \$ANT or \$ANT_HOME."
fi
fi
# make sure we have one
ANT=$ANT_HOME/bin/ant
if [ ! -x "$ANT" ]; then
die "Ant file is not executable: $ANT"
fi
# specify the jaxp parser impls to use
case "$JAXP" in
crimson)
JAXP_DOM_FACTORY="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl"
JAXP_SAX_FACTORY="org.apache.crimson.jaxp.SAXParserFactoryImpl"
;;
xerces)
JAXP_DOM_FACTORY="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
JAXP_SAX_FACTORY="org.apache.xerces.jaxp.SAXParserFactoryImpl"
;;
esac
if [ "x$JAXP_DOM_FACTORY" != "x" ]; then
ANT_OPTS="$ANT_OPTS
-Djavax.xml.parsers.DocumentBuilderFactory=$JAXP_DOM_FACTORY"
fi
if [ "x$JAXP_SAX_FACTORY" != "x" ]; then
ANT_OPTS="$ANT_OPTS -Djavax.xml.parsers.SAXParserFactory=$JAXP_SAX_FACTORY"
fi
# need to specify planet57/buildmagic protocol handler package
ANT_OPTS="$ANT_OPTS -Djava.protocol.handler.pkgs=planet57.net.protocol"
# setup some build properties
ANT_OPTS="$ANT_OPTS -Dbuild.script=$0"
# change to the directory where the script lives so users are not forced
# to be in the same directory as build.xml
cd $DIRNAME
# export some stuff for ant
export ANT ANT_HOME ANT_OPTS
# execute in debug mode, or simply execute
if [ "x$ANT_DEBUG" != "x" ]; then
/bin/sh -x $ANT $ANT_OPTIONS "$@"
else
exec $ANT $ANT_OPTIONS "$@"
fi
}
##
## Bootstrap
##
main "$@"
1.1 contrib/iiop/build.xml
Index: build.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY buildmagic SYSTEM "resource://planet57/tools/buildmagic/common.xml">
]>
<!-- ====================================================================== -->
<!-- -->
<!-- JBoss, the OpenSource J2EE webOS -->
<!-- -->
<!-- Distributable under LGPL license. -->
<!-- See terms of license at http://www.gnu.org. -->
<!-- -->
<!-- ====================================================================== -->
<!-- $Id: build.xml,v 1.1 2002/02/15 21:49:52 reverbel Exp $ -->
<project default="main" name="JBoss Plugins/IIOP">
<!-- ================================================================== -->
<!-- Setup -->
<!-- ================================================================== -->
<!--
| Include the common Buildmagic elements.
|
| This defines several different targets, properties and paths.
| It also sets up the basic extention tasks amoung other things.
-->
<property name="_project.root" value=".."/>
&buildmagic;
<!-- ================================================================== -->
<!-- Initialization -->
<!-- ================================================================== -->
<!--
| Initialize the build system. Must depend on '_buildmagic:init'.
| Other targets should depend on 'init' or things will mysteriously fail.
-->
<target name="init" unless="init.disable" depends="_buildmagic:init">
</target>
<!-- ================================================================== -->
<!-- Configuration -->
<!-- ================================================================== -->
<!--
| Configure the build system.
|
| This target is invoked by the Buildmagic initialization logic and
| should contain module specific configuration elements.
-->
<target name="configure" unless="configure.disable">
<!-- =================== -->
<!-- Basic Configuration -->
<!-- =================== -->
<!-- Module name(s) & version -->
<property name="module.name" value="jboss-iiop"/>
<property name="module.Name" value="JBoss IIOP plugin"/>
<property name="module.version" value="DEV"/>
<!-- ========= -->
<!-- Libraries -->
<!-- ========= -->
<!-- Java Naming and Directory Interface (JNDI) -->
<property name="sun.jndi.root" value="${project.thirdparty}/sun/jndi"/>
<property name="sun.jndi.lib" value="${sun.jndi.root}/lib"/>
<path id="sun.jndi.classpath">
<pathelement path="${sun.jndi.lib}/jndi.jar"/>
</path>
<!-- Java Management Extensions (JMX) -->
<property name="sun.jmx.root" value="${project.thirdparty}/sun/jmx"/>
<property name="sun.jmx.lib" value="${sun.jmx.root}/lib"/>
<path id="sun.jmx.classpath">
<pathelement path="${sun.jmx.lib}/jmxri.jar"/>
</path>
<!-- Java API for XML Processing (JAXP) -->
<property name="sun.jaxp.root" value="${project.thirdparty}/sun/jaxp"/>
<property name="sun.jaxp.lib" value="${sun.jaxp.root}/lib"/>
<path id="sun.jaxp.classpath">
<fileset dir="${sun.jaxp.lib}">
<include name="*.jar"/>
</fileset>
</path>
<!-- Log4j -->
<property name="apache.log4j.root" value="${project.thirdparty}/apache/log4j"/>
<property name="apache.log4j.lib" value="${apache.log4j.root}/lib"/>
<path id="apache.log4j.classpath">
<pathelement path="${apache.log4j.lib}/log4j.jar"/>
</path>
<!-- JUnit -->
<property name="junit.junit.root" value="${project.thirdparty}/junit/junit"/>
<property name="junit.junit.lib" value="${junit.junit.root}/lib"/>
<path id="junit.junit.classpath">
<pathelement path="${junit.junit.lib}/junit.jar"/>
</path>
<!-- JacORB -->
<property name="jacorb.jacorb.root" value="${project.thirdparty}/jacorb/jacorb"/>
<property name="jacorb.jacorb.lib" value="${jacorb.jacorb.root}/lib"/>
<path id="jacorb.jacorb.classpath">
<pathelement path="${jacorb.jacorb.lib}/jacorb.jar"/>
</path>
<!-- The combined library classpath -->
<path id="library.classpath">
<path refid="sun.jndi.classpath"/>
<path refid="sun.jmx.classpath"/>
<path refid="sun.jaxp.classpath"/>
<path refid="apache.log4j.classpath"/>
<path refid="junit.junit.classpath"/>
<path refid="jacorb.jacorb.classpath"/>
</path>
<!-- ======= -->
<!-- Modules -->
<!-- ======= -->
<!-- J2EE -->
<property name="jboss.j2ee.root" value="${project.root}/j2ee/output"/>
<property name="jboss.j2ee.lib" value="${jboss.j2ee.root}/lib"/>
<path id="jboss.j2ee.classpath">
<pathelement path="${jboss.j2ee.lib}/jboss-j2ee.jar"/>
</path>
<!-- Server -->
<property name="jboss.server.root" value="${project.root}/server/output"/>
<property name="jboss.server.lib" value="${jboss.server.root}/lib"/>
<path id="jboss.server.classpath">
<pathelement path="${jboss.server.lib}/jboss-spine.jar"/>
<pathelement path="${jboss.server.lib}/jboss.jar"/>
<pathelement path="${jboss.server.lib}/jboss-util.jar"/>
</path>
<!-- The combined dependent module classpath -->
<path id="dependentmodule.classpath">
<path refid="jboss.j2ee.classpath"/>
<path refid="jboss.server.classpath"/>
</path>
<!-- ===== -->
<!-- Tasks -->
<!-- ===== -->
<!-- Where source files live -->
<property name="source.bin" value="${module.source}/bin"/>
<property name="source.java" value="${module.source}/main"/>
<property name="source.etc" value="${module.source}/etc"/>
<property name="source.resources" value="${module.source}/resources"/>
<!-- Where build generated files will go -->
<property name="build.bin" value="${module.output}/bin"/>
<property name="build.classes" value="${module.output}/classes"/>
<property name="build.lib" value="${module.output}/lib"/>
<property name="build.api" value="${module.output}/api"/>
<property name="build.etc" value="${module.output}/etc"/>
<property name="build.reports" value="${module.output}/reports"/>
<property name="build.resources" value="${module.output}/resources"/>
<!-- Install/Release structure -->
<property name="install.id" value="${module.name}-${module.version}"/>
<property name="release.id" value="${install.id}"/>
<property name="install.root" value="${module.output}/${install.id}"/>
<!-- The combined thirdparty classpath -->
<path id="thirdparty.classpath">
<path refid="library.classpath"/>
<path refid="dependentmodule.classpath"/>
</path>
<!-- This module is based on Java 1.2 -->
<property name="javac.target" value="1.2"/>
<!-- classpath and local.classpath must have a value using with a path -->
<property name="classpath" value=""/>
<property name="local.classpath" value=""/>
<!-- The classpath required to build classes. -->
<path id="javac.classpath">
<pathelement path="${classpath}"/>
<pathelement path="${local.classpath}"/>
<path refid="thirdparty.classpath"/>
</path>
<!-- The classpath required to build javadocs. -->
<path id="javadoc.classpath">
<path refid="javac.classpath"/>
</path>
<!-- Packages to include when generating api documentation -->
<property name="javadoc.packages" value="org.jboss.*"/>
<!-- Override JUnit defaults -->
<property name="junit.timeout" value="240000"/> <!-- 4 minutes -->
<property name="junit.batchtest.todir" value="${build.reports}"/>
<property name="junit.jvm.options" value="-Ddummy"/>
</target>
<!-- ================================================================== -->
<!-- Compile -->
<!-- ================================================================== -->
<!--
| Compile everything.
|
| This target should depend on other compile-* targets for each
| different type of compile that needs to be performed, short of
| documentation compiles.
-->
<target name="compile"
depends="compile-classes, compile-rmi, compile-etc, compile-resources"
description="Compile all source files."/>
<!-- Compile all class files -->
<target name="compile-classes" depends="init">
<mkdir dir="${build.classes}/main"/>
<javac destdir="${build.classes}/main"
optimize="${javac.optimize}"
target="${javac.target}"
debug="${javac.debug}"
depend="${javac.depend}"
verbose="${javac.verbose}"
deprecation="${javac.deprecation}"
includeAntRuntime="${javac.include.ant.runtime}"
includeJavaRuntime="${javac.include.java.runtime}"
failonerror="${javac.fail.onerror}">
<src path="${source.java}"/>
<classpath refid="javac.classpath"/>
<include name="${javac.includes}"/>
<exclude name="${javac.excludes}"/>
</javac>
</target>
<!-- Compile RMI stubs -->
<target name="compile-rmi" depends="compile-classes">
<rmic base="${build.classes}"
classname="javax.ejb.EJBHome"
iiop="yes"
debug="${rmic.debug}">
<classpath refid="javac.classpath"/>
</rmic>
<rmic base="${build.classes}"
classname="javax.ejb.EJBObject"
iiop="yes"
debug="${rmic.debug}">
<classpath refid="javac.classpath"/>
</rmic>
</target>
<!-- Compile etc files (manifests and such) -->
<target name="compile-etc" depends="init">
<mkdir dir="${build.etc}"/>
<copy todir="${build.etc}" filtering="yes">
<fileset dir="${source.etc}">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- Compile resource files -->
<target name="compile-resources" depends="init">
<mkdir dir="${build.resources}"/>
<copy todir="${build.resources}" filtering="yes">
<fileset dir="${source.resources}">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ================================================================== -->
<!-- Archives -->
<!-- ================================================================== -->
<!--
| Build all jar files.
-->
<target name="jars" depends="compile" description="Build the Service Archive">
<mkdir dir="${build.lib}"/>
<jar jarfile="${build.lib}/${module.name}.jar">
<fileset dir="${build.classes}/main">
<include name="**/jboss/iiop/**"/>
<include name="**/jboss/proxy/compiler/**"/>
<include name="**/jboss/ejb/plugins/iiop/**"/>
</fileset>
<fileset dir="${build.classes}">
<include name="org/omg/stub/javax/ejb/_EJBHome_Stub.class"/>
<include name="org/omg/stub/javax/ejb/_EJBObject_Stub.class"/>
</fileset>
</jar>
<jar jarfile="${build.lib}/${module.name}-client.jar">
<fileset dir="${build.classes}/main">
<include name="**/jboss/proxy/compiler/**"/>
<include name="**/jboss/iiop/rmi/**"/>
<include name="**/jboss/ejb/plugins/iiop/**"/>
<exclude name="**/server/**"/>
</fileset>
<fileset dir="${build.classes}">
<include name="org/omg/stub/javax/ejb/_EJBHome_Stub.class"/>
<include name="org/omg/stub/javax/ejb/_EJBObject_Stub.class"/>
</fileset>
</jar>
<mkdir dir="${build.bin}"/>
</target>
<!-- ================================================================== -->
<!-- Documents -->
<!-- ================================================================== -->
<!--
| Create all generated documenation.
|
| This target should depend on other docs-* targets for each
| different type of docuementation that is to be generated.
-->
<target name="docs" depends="init, docs-api"
description="Builds all documentation.">
</target>
<!-- Javadocs is an exception, but provide a docs-api to conform. -->
<target name="docs-api" depends="docs-javadocs"/>
<!--
| Check if we need to build javadocs
|
| Javadocs will only be generated if one or more .java source files
| is newer than the generated index.html.
-->
<target name="docs-javadocs-check" depends="init">
<!-- if index.html is newer than the sources we are up to date -->
<uptodate property="docs-javadocs.disable"
targetfile="${build.api}/index.html">
<srcfiles dir="${source.java}" includes="**/*.java"/>
</uptodate>
</target>
<!-- Generate Javadoc if we are out of date -->
<target name="docs-javadocs" depends="docs-javadocs-check"
unless="docs-javadocs.disable">
<mkdir dir="${build.api}"/>
<javadoc packagenames="${javadoc.packages}"
sourcepath="${source.java}"
destdir="${build.api}"
classpathref="javadoc.classpath"
windowtitle="${javadoc.windowtitle}"
splitindex="${javadoc.splitindex}"
doctitle="${javadoc.doctitle}"
author="${javadoc.author}"
version="${javadoc.version}"
public="${javadoc.public}"
package="${javadoc.package}"
protected="${javadoc.protected}"
private="${javadoc.private}"
use="${javadoc.use}"
verbose="${javadoc.verbose}">
<group title="JDBC Extension" packages="javax.sql*"/>
<group title="J2EE" packages="javax*"/>
</javadoc>
</target>
<target name="javadocs" depends="docs-javadocs"/>
<!-- ================================================================== -->
<!-- Install & Release -->
<!-- ================================================================== -->
<target name="install"
description="Install the structure for a release."
depends="all, _buildmagic:install:default"/>
<target name="release" depends="install"/>
<target name="release-zip"
description="Builds a ZIP distribution."
depends="release, _buildmagic:release:zip"/>
<target name="release-tar"
description="Builds a TAR distribution."
depends="release, _buildmagic:release:tar"/>
<target name="release-tgz"
description="Builds a TAR-GZ distribution."
depends="release, _buildmagic:release:tgz"/>
<target name="release-all"
description="Builds a distribution for each archive type."
depends="release-zip, release-tgz"/>
<!-- ================================================================== -->
<!-- Cleaning -->
<!-- ================================================================== -->
<!-- Clean up all build output -->
<target name="clean"
description="Cleans up most generated files."
depends="_buildmagic:clean">
</target>
<!-- Clean up all generated files -->
<target name="clobber"
description="Cleans up all generated files."
depends="_buildmagic:clobber, clean">
</target>
<!-- ================================================================== -->
<!-- Misc. -->
<!-- ================================================================== -->
<target name="main"
description="Executes the default target (most)."
depends="most"/>
<target name="all"
description="Builds everything."
depends="jars, docs"/>
<target name="most"
description="Builds almost everything."
depends="jars"/>
<target name="help"
description="Show this help message."
depends="_buildmagic:help:standard"/>
</project>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development