Author: pidster
Date: Thu Jan  6 09:15:35 2011
New Revision: 1055797

URL: http://svn.apache.org/viewvc?rev=1055797&view=rev
Log:
Update build files to generate a JAR

Added:
    incubator/kitty/trunk/BUILDING
    incubator/kitty/trunk/build.properties   (with props)
Modified:
    incubator/kitty/trunk/build.xml

Added: incubator/kitty/trunk/BUILDING
URL: 
http://svn.apache.org/viewvc/incubator/kitty/trunk/BUILDING?rev=1055797&view=auto
==============================================================================
--- incubator/kitty/trunk/BUILDING (added)
+++ incubator/kitty/trunk/BUILDING Thu Jan  6 09:15:35 2011
@@ -0,0 +1,19 @@
+================================================================================
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+================================================================================
+
+See the build.properties file for additional information.
+

Added: incubator/kitty/trunk/build.properties
URL: 
http://svn.apache.org/viewvc/incubator/kitty/trunk/build.properties?rev=1055797&view=auto
==============================================================================
--- incubator/kitty/trunk/build.properties (added)
+++ incubator/kitty/trunk/build.properties Thu Jan  6 09:15:35 2011
@@ -0,0 +1,34 @@
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at#
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------
+
+# FIXME - edit the line below to refer to your Groovy libs
+groovy.lib=/opt/local/share/java/groovy/lib
+
+# ------------------------------------------------------------
+# EDIT version as applicable
+app.name=apache-kitty
+app.title=Apache Kitty (Incubating)
+app.version=0.1-dev
+
+# ------------------------------------------------------------
+# DO NOT EDIT below this line
+dir.src=src
+dir.bin=output/bin
+dir.dist=output/dist
+dir.release=output/release
+
+javac.source=1.6
+javac.target=1.6

Propchange: incubator/kitty/trunk/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/kitty/trunk/build.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/kitty/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/kitty/trunk/build.xml?rev=1055797&r1=1055796&r2=1055797&view=diff
==============================================================================
--- incubator/kitty/trunk/build.xml (original)
+++ incubator/kitty/trunk/build.xml Thu Jan  6 09:15:35 2011
@@ -1,31 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project name="kitty" default="default" basedir='.'>
        <description>
                This is the Apache Kitty build script.  
-               Apache Kitty is an open source implementation of JSR-160.
+               Apache Kitty is an open source implementation of JSR-160.???
        </description>
        
        <!-- Global properties for the build -->
        
        <loadproperties srcFile="build.properties" />
        
-       <property name="src" location="src" />
-       <property name="build" location="build" />
-       <property name="deploy" location="deploy" />
-       
-       <path id="java.classpath">
-               <!-- etc -->
-       </path>
-       
        <path id="groovy.classpath">
-               <fileset dir="/Users/msacks/groovy-1.7.4/lib">
+               <fileset dir="${basedir}/lib">
+                   <include name="**/*.jar"/>
+               </fileset>
+               <fileset dir="${groovy.lib}">
+                   <include name="**/*.jar"/>
+               </fileset>
+               <fileset dir="${user.home}/.groovy/lib">
                    <include name="**/*.jar"/>
                </fileset>
        </path>
        
        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" 
classpathref="groovy.classpath" />
        
-       <target name="default" depends="init, compile">
+       <target name="default" depends="init, compile, enjar">
                
        </target>
        
@@ -33,18 +47,39 @@
                <!-- timestamp of build -->
                <tstamp />
                <!-- create the build and deploy directories -->
-               <mkdir dir="${build}" />
-               <mkdir dir="${deploy}" />
+               <mkdir dir="${dir.bin}" />
+               <mkdir dir="${dir.dist}" />
        </target>
        
        <target name="compile" depends="init">
-               <groovyc srcdir="${src}" destdir="${build}">
-                       <javac srcdir="${src}"
-                        destdir="${build}"
-                        classpath="${java.classpath}"
-                        debug="on"
-                       />
+               <groovyc srcdir="${dir.src}" destdir="${dir.bin}">
+                       <javac debug="on" source="${javac.source}" 
target="${javac.target}" />
                </groovyc>
        </target>
        
+       <target name="enjar" depends="compile">
+               <delete file="${dir.dist}/${app.name}-${app.version}.jar" />
+               <jar destfile="${dir.dist}/${app.name}-${app.version}.jar">
+                       <manifest>
+                               <attribute name="Main-Class" 
value="org.apache.kitty.Main" />
+                               <attribute name="Premain-Class" 
value="org.apache.kitty.agent.Agent" />
+                               <attribute name="Agent-Class" 
value="org.apache.kitty.agent.Agent" />
+                               <attribute name="Can-Redefine-Classes" 
value="true" />
+                               <attribute name="Can-Retransform-Classes" 
value="true" />
+                               <attribute name="Can-Set-Native-Method-Prefix" 
value="true" />
+                       </manifest>
+                       <fileset dir="${dir.bin}">
+                               <include name="**/*.class" />
+                       </fileset>
+               </jar>  
+       </target>
+       
+       <target name="test">
+               
+       </target>
+       
+       <target name="release" depends="enjar, test">
+
+       </target>
+       
 </project>


Reply via email to