Anonymous avatar Anonymous committed 14b16d8

semi-automated release system!

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@555 573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (6)

 .j2ee
 .runtime
 .websettings
+release.properties
       <additionalClassPath>
         <entry path="file://$PROJECT_DIR$/lib/build/clover.jar" />
         <entry path="file://$PROJECT_DIR$/lib/build/junit.jar" />
+        <entry path="file://$PROJECT_DIR$/lib/build/jsch.jar" />
       </additionalClassPath>
       <antReference projectDefault="true" />
       <customJdkName value="" />
-name=webwork
-version=2.1.3
-fullname=WebWork
-fullversion=2.1.3
+name = webwork
+version = 2.1.3
+fullname = WebWork
+fullversion = 2.1.3
+cvs.tag = webwork_2-1-3
+latest.download = https://webwork.dev.java.net/files/documents/693/7935/webwork-2.1.3.zip
     </path>
 
     <property file="build.properties"/>
+    <property file="release.properties"/>
 
     <property name="lib" value="lib"/>
     <property name="lib.core" value="${lib}/core"/>
             <exclude name="docs/junit/**/*"/>
         </zip>
     </target>
+
+    <target name="release">
+        <!-- update the navpanel.jsp to include the download link -->
+        <filter token="DOWNLOAD" value="${latest.download}"/>
+        <copy tofile="${docs}/navpanel.jsp" file="${docs}/navpanel-source.jsp" filtering="yes"/>
+
+        <cvs command="commit ${docs}/navpanel.jsp"/>
+        <cvs command="tag -F ${cvs.tag}"/>
+
+        <!-- update the website -->
+        <sshexec host="www.opensymphony.com"
+            username="${website.username}"
+            password="${website.password}"
+            trust="yes"
+            command="cd /opt/j2ee/opensymphony/webwork;export JAVA_HOME='/usr/java/jdk';cvs update -P -d;/usr/java/ant-1.5.4/bin/ant docs;"/>
+
+
+        <!-- update the ibiblio repository -->
+        <scp password="${ibiblio.password}"
+            trust="yes"
+            todir="${ibiblio.username}@opensymphony.formicary.net:/home/rsync/repository/opensymphony/jars"
+            file="${build}/${name}-${version}.jar"/>
+    </target>
 </project>
 

Binary file added.

lib/build/libraries.txt

 mockobjects-jdk1.3-j2ee1.3.jar - Mock objects library (0.09dev)
 mockobjects-jdk1.3.jar - Mock objects library (0.09dev)
 servlet.jar - Servlet API version 2.3
+jsch.jar - JCraft 0.1.17
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.