forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r386097 - in /forrest/trunk/etc: builddispatcher.bat builddispatcher.sh
Date Wed, 15 Mar 2006 15:45:30 GMT
Author: cdupoirieux
Date: Wed Mar 15 07:45:29 2006
New Revision: 386097

URL: http://svn.apache.org/viewcvs?rev=386097&view=rev
Log:
[FOR-831] Patch applied, Thank Gavin,
I just put a full path to ant because it was not working in my machine.
Can someone try the sh version please.
(Or I will try it tonight at home ;) )

Added:
    forrest/trunk/etc/builddispatcher.bat   (with props)
    forrest/trunk/etc/builddispatcher.sh   (with props)

Added: forrest/trunk/etc/builddispatcher.bat
URL: http://svn.apache.org/viewcvs/forrest/trunk/etc/builddispatcher.bat?rev=386097&view=auto
==============================================================================
--- forrest/trunk/etc/builddispatcher.bat (added)
+++ forrest/trunk/etc/builddispatcher.bat Wed Mar 15 07:45:29 2006
@@ -0,0 +1,39 @@
+@echo off
+rem Copyright 2002-2006 The Apache Software Foundation or its licensors,
+rem as applicable.
+rem
+rem Licensed under the Apache License, Version 2.0 (the "License");
+rem you may not use this file except in compliance with the License.
+rem You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+if "%OS%"=="Windows_NT" @setlocal
+if "%OS%"=="WINNT" @setlocal
+
+rem ----- use the location of this script to infer $FORREST_HOME -------
+if NOT "%OS%"=="Windows_NT" set DEFAULT_FORREST_HOME=..
+if "%OS%"=="Windows_NT" set DEFAULT_FORREST_HOME=%~dp0\..
+if "%OS%"=="WINNT" set DEFAULT_FORREST_HOME=%~dp0\..
+if "%FORREST_HOME%"=="" set FORREST_HOME=%DEFAULT_FORREST_HOME%
+
+rem ----- set the current working dir as the PROJECT_HOME variable  ----
+if NOT "%OS%"=="Windows_NT" call "%FORREST_HOME%\bin\setpwdvar98.bat"
+if "%OS%"=="Windows_NT" call "%FORREST_HOME%\bin\setpwdvar.bat"
+if "%OS%"=="WINNT" call "%FORREST_HOME%\bin\setpwdvar.bat"
+set PROJECT_HOME=%PWD%
+
+cd "%FORREST_HOME%\main"
+call build clean
+call build
+cd "%FORREST_HOME%\whiteboard\plugins\org.apache.forrest.plugin.internal.dispatcher"
+call "%FORREST_HOME%\tools\ant\bin\ant.bat" local-deploy
+cd "%FORREST_HOME%\whiteboard\plugins\org.apache.forrest.themes.core"
+call "%FORREST_HOME%\tools\ant\bin\ant.bat" local-deploy
+cd "%PROJECT_HOME%"

Propchange: forrest/trunk/etc/builddispatcher.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/etc/builddispatcher.sh
URL: http://svn.apache.org/viewcvs/forrest/trunk/etc/builddispatcher.sh?rev=386097&view=auto
==============================================================================
--- forrest/trunk/etc/builddispatcher.sh (added)
+++ forrest/trunk/etc/builddispatcher.sh Wed Mar 15 07:45:29 2006
@@ -0,0 +1,70 @@
+#!/bin/sh
+# Copyright 2002-2006 The Apache Software Foundation or its licensors,
+# as applicable.
+#
+# Licensed 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.
+
+
+# set the current working dir as the PROJECT_HOME variable 
+cygwin=false;
+darwin=false;
+case `uname` in
+  CYGWIN*) cygwin=true ;;
+  Darwin*) darwin=true
+           if [ -z "$JAVA_HOME" ] ; then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home   
+           fi
+           ;;
+esac
+
+if [ "$cygwin" = "true" ] ; then
+  PROJECT_HOME=`cygpath -w "$PWD"`
+else
+  PROJECT_HOME=`pwd`
+fi
+
+# check the FORREST_HOME variable and set it if needed
+if [ -z "$FORREST_HOME" ] ; then
+  # use the location of this script to infer $FORREST_HOME
+  whoami=`basename $0`
+  whereami=`echo $0 | sed -e "s#^[^/]#\`pwd\`/&#"`
+  whereami=`dirname $whereami`
+
+  # Resolve any symlinks of the now absolute path, $whereami
+  realpath_listing=`ls -l $whereami/$whoami`
+  case "$realpath_listing" in
+    *-\>\ /*)
+      realpath=`echo $realpath_listing | sed -e "s#^.*-> ##"`
+      ;;
+    *-\>*)
+      realpath=`echo $realpath_listing | sed -e "s#^.*-> #$whereami/#"`
+      ;;
+    *)
+      realpath=$whereami/$whoami
+      ;;
+  esac
+  FORREST_HOME=`dirname "$realpath"`/..
+  export FORREST_HOME
+fi
+
+cd $FORREST_HOME/main
+./build.sh clean
+./build
+
+cd $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer
+$FORREST_HOME/tools/ant/bin/ant local-deploy
+
+cd $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.themer
+$FORREST_HOME/tools/ant/bin/ant local-deploy
+cd $PROJECT_HOME
+

Propchange: forrest/trunk/etc/builddispatcher.sh
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message