[Yanel-commits] rev 48214 - in public/yanel/trunk: . src/build
tools/apache-tomcat
memo at wyona.com
memo at wyona.com
Mon Mar 22 16:50:36 CET 2010
Author: memo
Date: 2010-03-22 16:50:36 +0100 (Mon, 22 Mar 2010)
New Revision: 48214
Modified:
public/yanel/trunk/src/build/build.xml
public/yanel/trunk/tools/apache-tomcat/build.xml
public/yanel/trunk/yanel.sh
Log:
debug target added
Modified: public/yanel/trunk/src/build/build.xml
===================================================================
--- public/yanel/trunk/src/build/build.xml 2010-03-22 15:40:36 UTC (rev 48213)
+++ public/yanel/trunk/src/build/build.xml 2010-03-22 15:50:36 UTC (rev 48214)
@@ -65,6 +65,7 @@
<import file="targets/test.xml"/>
<import file="targets/config.xml"/>
<import file="targets/build-artifacts.build.xml"/>
+ <import file="../../tools/apache-tomcat/build.xml"/>
Modified: public/yanel/trunk/tools/apache-tomcat/build.xml
===================================================================
--- public/yanel/trunk/tools/apache-tomcat/build.xml 2010-03-22 15:40:36 UTC (rev 48213)
+++ public/yanel/trunk/tools/apache-tomcat/build.xml 2010-03-22 15:50:36 UTC (rev 48214)
@@ -53,4 +53,13 @@
<move file="${server.file}" tofile="${server.old.file}"/>
<move file="${server.new.file}" tofile="${server.file}"/>
</target>
+
+ <target name="start-tomcat-debug" description="Start Yanel in debug mode" depends="init">
+ <echo level="info">Starting Yanel in debug mode ...</echo>
+ <chmod dir="${default.tomcat.home.dir}/bin" perm="755" includes="*"/>
+ <exec dir="${default.tomcat.home.dir}/bin" resolveexecutable="true" executable="catalina.sh" spawn="false">
+ <arg line="jpda start"/>
+ </exec>
+ </target>
+
</project>
Modified: public/yanel/trunk/yanel.sh
===================================================================
--- public/yanel/trunk/yanel.sh 2010-03-22 15:40:36 UTC (rev 48213)
+++ public/yanel/trunk/yanel.sh 2010-03-22 15:50:36 UTC (rev 48214)
@@ -58,6 +58,9 @@
elif [ "$1" = "stop" ]; then
echo "INFO: Stopping Yanel..."
$OUR_ANT stop-tomcat
+elif [ "$1" == "-debug" ] && [ "$2" == "start" ]; then
+ echo "INFO: Starting Yanel in debug mode..."
+ $OUR_ANT start-tomcat-debug
elif [ "$1" = "start-jetty" ]; then
echo "INFO: Starting Yanel on Jetty..."
MAVEN=`which mvn`
More information about the Yanel-commits
mailing list