Author: fhanik
Date: Thu Jun 28 11:21:18 2007
New Revision: 551648

URL: http://svn.apache.org/viewvc?view=rev&rev=551648
Log:
Added skeleton structure around Bayeux


Added:
    tomcat/sandbox/bayeux/
    tomcat/sandbox/bayeux/build/
    tomcat/sandbox/bayeux/build/build.properties.default
    tomcat/sandbox/bayeux/build/build.xml
    tomcat/sandbox/bayeux/conf/
    tomcat/sandbox/bayeux/java/
    tomcat/sandbox/bayeux/java/org/
    tomcat/sandbox/bayeux/java/org/apache/
    tomcat/sandbox/bayeux/java/org/apache/comet/
    tomcat/sandbox/bayeux/java/org/apache/comet/bayeux/

Added: tomcat/sandbox/bayeux/build/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/sandbox/bayeux/build/build.properties.default?view=auto&rev=551648
==============================================================================
--- tomcat/sandbox/bayeux/build/build.properties.default (added)
+++ tomcat/sandbox/bayeux/build/build.properties.default Thu Jun 28 11:21:18 
2007
@@ -0,0 +1,30 @@
+# -----------------------------------------------------------------------------
+# build.properties.sample
+#
+# This is an example "build.properties" file, used to customize building 
+# Tomcat for your local environment.  It defines the location of all external
+# modules that Tomcat depends on.  Copy this file to "build.properties"
+# in the top-level source directory, and customize it as needed.
+#
+# $Id: build.properties.default 526202 2007-04-06 15:44:38Z remm $
+# -----------------------------------------------------------------------------
+
+# ----- Vesion Control Flags -----
+version.major=6
+version.minor=X
+version.build=0
+version.patch=0
+version=6.x-sandbox
+
+# ----- Default Base Path for Dependent Packages -----
+# Please note this path must be absolute, not relative,
+# as it is referenced with different working directory
+# contexts by the various build scripts.
+base.path=/usr/share/java
+#base.path=C:/path/to/the/repository
+#base.path=/usr/local
+
+compile.source=1.5
+compile.target=1.5
+compile.debug=true
+

Added: tomcat/sandbox/bayeux/build/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/sandbox/bayeux/build/build.xml?view=auto&rev=551648
==============================================================================
--- tomcat/sandbox/bayeux/build/build.xml (added)
+++ tomcat/sandbox/bayeux/build/build.xml Thu Jun 28 11:21:18 2007
@@ -0,0 +1,85 @@
+<project default="build" basedir=".">
+
+  <!-- ===================== Initialize Property Values =================== -->
+
+  <!-- See "build.properties.sample" in the top level directory for all     -->
+  <!-- property values you must customize for successful building!!!        -->
+  <property file="${user.home}/build.properties"/>
+  <property file="build.properties"/>
+
+  <property file="build.properties.default"/>
+  <property name="base.path" value="${basedir}/deps"/>
+
+  <!-- Download and dependency building -->
+  <target name="proxyflags">
+    <!-- check proxy parameters. -->
+    <condition property="useproxy">
+      <equals arg1="${proxy.use}" arg2="on" />
+    </condition>
+  </target>
+
+  <target name="setproxy" depends="proxyflags" if="useproxy">
+    <taskdef name="setproxy"
+            classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
+    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"
+              proxyuser="${proxy.user}" proxypassword="${proxy.password}" />
+    <echo message="Using ${proxy.host}:${proxy.port} to download 
${sourcefile}"/>
+  </target>
+
+  <target name="testexist">
+    <echo message="Testing  for ${destfile}"/>
+    <available file="${destfile}" property="exist"/>
+  </target>
+
+  <target name="downloadgz" unless="exist" depends="setproxy,testexist">
+    <!-- Download and extract the package -->
+    <get src="${sourcefile}" dest="${base.path}/file.tar.gz" />
+    <gunzip src="${base.path}/file.tar.gz" dest="${base.path}/file.tar"/>
+    <untar src="${base.path}/file.tar" dest="${base.path}"/>
+    <delete file="${base.path}/file.tar"/>
+    <delete file="${base.path}/file.tar.gz"/>
+  </target>
+
+  <target name="downloadzip" unless="exist" depends="setproxy,testexist">
+    <!-- Download and extract the package -->
+    <get src="${sourcefile}" dest="${base.path}/file.zip" />
+    <mkdir dir="${destdir}" />
+    <unzip src="${base.path}/file.zip" dest="${destdir}"/>
+    <delete file="${base.path}/file.zip"/>
+  </target>
+
+  <target name="downloadfile" unless="exist" depends="setproxy,testexist">
+    <!-- Download extract the file -->
+    <mkdir dir="${destdir}" />
+    <get src="${sourcefile}" dest="${destfile}" />
+  </target>
+
+  <target name="download" description="Builds and download dependent 
components">
+
+    <antcall target="downloadfile">
+      <param name="sourcefile" value="${tomcat-native.loc}"/>
+      <param name="destfile" value="${tomcat-native.tar.gz}"/>
+      <param name="destdir" value="${tomcat-native.home}"/>
+    </antcall>
+
+    <antcall target="downloadgz">
+      <param name="sourcefile" value="${commons-daemon.loc}"/>
+      <param name="destfile" value="${commons-daemon.jar}"/>
+    </antcall>
+
+    <!-- Build Tomcat DBCP bundle -->
+    <antcall target="downloadgz">
+      <param name="sourcefile" value="${commons-collections-src.loc}"/>
+      <param name="destfile" value="${tomcat-dbcp.jar}" />
+    </antcall>
+    <antcall target="downloadzip">
+      <param name="sourcefile" value="${jdt.loc}"/>
+      <param name="destfile" value="${jdt.jar}"/>
+      <param name="destdir" value="${base.path}"/>
+    </antcall>
+  </target>
+
+  
+  <target name="build">
+  </target>
+</project>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to