You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dw...@apache.org on 2007/06/05 21:03:47 UTC
svn commit: r544595 - in /geronimo/sandbox/j2g:
plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/
src/main/resources/
Author: dwoods
Date: Tue Jun 5 12:03:46 2007
New Revision: 544595
URL: http://svn.apache.org/viewvc?view=rev&rev=544595
Log:
GERONIMO-3158 - J2G should support *nix
Modified:
geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/JspCompiler.java
geronimo/sandbox/j2g/src/main/resources/j2g-configure.sh
geronimo/sandbox/j2g/src/main/resources/jdesc2g.sh
geronimo/sandbox/j2g/src/main/resources/jres2g.sh
geronimo/sandbox/j2g/src/main/resources/jsrc2g.sh
Modified: geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/JspCompiler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/JspCompiler.java?view=diff&rev=544595&r1=544594&r2=544595
==============================================================================
--- geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/JspCompiler.java (original)
+++ geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.jasper/src/org/apache/geronimo/j2g/jasper/JspCompiler.java Tue Jun 5 12:03:46 2007
@@ -85,10 +85,10 @@
File[] fileList = file.listFiles(jspFilesFilter);
for (int i = 0; i < fileList.length; i++) {
if (fileList[i].isDirectory()) {
- searchJspFiles(base + File.separator + fileList[i].getName(), fileList[i]);
+ searchJspFiles("." + base + File.separator + fileList[i].getName(), fileList[i]);
}
else {
- jspCompiler.setJspFiles(base + File.separator + fileList[i].getName());
+ jspCompiler.setJspFiles("." + base + File.separator + fileList[i].getName());
}
}
}
Modified: geronimo/sandbox/j2g/src/main/resources/j2g-configure.sh
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/src/main/resources/j2g-configure.sh?view=diff&rev=544595&r1=544594&r2=544595
==============================================================================
--- geronimo/sandbox/j2g/src/main/resources/j2g-configure.sh (original)
+++ geronimo/sandbox/j2g/src/main/resources/j2g-configure.sh Tue Jun 5 12:03:46 2007
@@ -18,6 +18,22 @@
# --------------------------------------------------------------------
# $Rev$ $Date$
# --------------------------------------------------------------------
+if [ -z $ECLIPSE_HOME ]; then
+ echo ""
+ echo "ERROR: ECLIPSE_HOME not found in the environment."
+ echo "Please specify the path to the Eclipse SDK now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "ECLIPSE_HOME="
+ read ECLIPSE_HOME
+ export ECLIPSE_HOME=$ECLIPSE_HOME
+fi
+
+echo ""
+echo "Copying J2G plugins to $ECLIPSE_HOME/plugins/ ..."
+echo ""
+cp -vf ../plugins/*.jar $ECLIPSE_HOME/plugins/
+echo ""
+java -cp ../lib/configurator-1.0.0-SNAPSHOT.jar org.apache.geronimo.j2g.Configurator $ECLIPSE_HOME
-java -cp configurator.jar org.apache.geronimo.j2g.Configurator $ECLIPSE_HOME
Modified: geronimo/sandbox/j2g/src/main/resources/jdesc2g.sh
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/src/main/resources/jdesc2g.sh?view=diff&rev=544595&r1=544594&r2=544595
==============================================================================
--- geronimo/sandbox/j2g/src/main/resources/jdesc2g.sh (original)
+++ geronimo/sandbox/j2g/src/main/resources/jdesc2g.sh Tue Jun 5 12:03:46 2007
@@ -18,4 +18,25 @@
# --------------------------------------------------------------------
# $Rev$ $Date$
# --------------------------------------------------------------------
-java -classpath $ECLIPSE_HOME\startup.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.descriptors.tool -data $WORKSPACE "$*"
\ No newline at end of file
+if [ -z $ECLIPSE_HOME ]; then
+ echo ""
+ echo "ERROR: ECLIPSE_HOME not found in the environment."
+ echo "Please specify the path to the Eclipse SDK now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "ECLIPSE_HOME="
+ read ECLIPSE_HOME
+ STARTUP_JAR=$ECLIPSE_HOME
+fi
+
+if [ -z $WORKSPACE ]; then
+ echo ""
+ echo "ERROR: WORKSPACE not found in the environment."
+ echo "Please specify a path for an Eclipse workspace now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "WORKSPACE="
+ read WORKSPACE
+fi
+
+java -classpath $ECLIPSE_HOME/plugins/org.eclipse.equinox.launcher_*.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.descriptors.tool -data $WORKSPACE $*
Modified: geronimo/sandbox/j2g/src/main/resources/jres2g.sh
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/src/main/resources/jres2g.sh?view=diff&rev=544595&r1=544594&r2=544595
==============================================================================
--- geronimo/sandbox/j2g/src/main/resources/jres2g.sh (original)
+++ geronimo/sandbox/j2g/src/main/resources/jres2g.sh Tue Jun 5 12:03:46 2007
@@ -18,5 +18,25 @@
# --------------------------------------------------------------------
# $Rev$ $Date$
# --------------------------------------------------------------------
+if [ -z $ECLIPSE_HOME ]; then
+ echo ""
+ echo "ERROR: ECLIPSE_HOME not found in the environment."
+ echo "Please specify the path to the Eclipse SDK now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "ECLIPSE_HOME="
+ read ECLIPSE_HOME
+ STARTUP_JAR=$ECLIPSE_HOME
+fi
-java -classpath $ECLIPSE_HOME\startup.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.resources.tool -data $WORKSPACE "$*"
\ No newline at end of file
+if [ -z $WORKSPACE ]; then
+ echo ""
+ echo "ERROR: WORKSPACE not found in the environment."
+ echo "Please specify a path for an Eclipse workspace now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "WORKSPACE="
+ read WORKSPACE
+fi
+
+java -classpath $ECLIPSE_HOME/plugins/org.eclipse.equinox.launcher_*.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.resources.tool -data $WORKSPACE $*
Modified: geronimo/sandbox/j2g/src/main/resources/jsrc2g.sh
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/src/main/resources/jsrc2g.sh?view=diff&rev=544595&r1=544594&r2=544595
==============================================================================
--- geronimo/sandbox/j2g/src/main/resources/jsrc2g.sh (original)
+++ geronimo/sandbox/j2g/src/main/resources/jsrc2g.sh Tue Jun 5 12:03:46 2007
@@ -18,4 +18,25 @@
# --------------------------------------------------------------------
# $Rev$ $Date$
# --------------------------------------------------------------------
-java -classpath $ECLIPSE_HOME\startup.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.sources.tool -data $WORKSPACE "$*"
\ No newline at end of file
+if [ -z $ECLIPSE_HOME ]; then
+ echo ""
+ echo "ERROR: ECLIPSE_HOME not found in the environment."
+ echo "Please specify the path to the Eclipse SDK now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "ECLIPSE_HOME="
+ read ECLIPSE_HOME
+ STARTUP_JAR=$ECLIPSE_HOME
+fi
+
+if [ -z $WORKSPACE ]; then
+ echo ""
+ echo "ERROR: WORKSPACE not found in the environment."
+ echo "Please specify a path for an Eclipse workspace now, or define it as an environment variable and restart this tool."
+ echo "(Note: This will ONLY be in effect for this session)."
+ echo ""
+ echo -n "WORKSPACE="
+ read WORKSPACE
+fi
+
+java -classpath $ECLIPSE_HOME/plugins/org.eclipse.equinox.launcher_*.jar org.eclipse.core.launcher.Main -application org.apache.geronimo.j2g.sources.tool -data $WORKSPACE -configuration $ECLIPSE_HOME/configuration $*