[virtualcommons-svn] commit/foraging: alllee: adding error message / basic config check to ant depl
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2011-10-17 09:01:29
|
1 new changeset in foraging: http://bitbucket.org/virtualcommons/foraging/changeset/ed8ed0f247fd/ changeset: ed8ed0f247fd user: alllee date: 2011-10-17 11:01:28 summary: adding error message / basic config check to ant deploy targets affected #: 1 file (-1 bytes) --- a/build.xml Mon Oct 17 00:50:59 2011 -0700 +++ b/build.xml Mon Oct 17 02:01:28 2011 -0700 @@ -134,7 +134,7 @@ <chmod dir="${deploy.dir}" perm="664" type="file" includes="**"/><chmod dir="${deploy.dir}" perm="775" type="dir" includes="**"/></target> - <target name="deploy"> + <target name="deploy" depends='check-configuration' if='configuration.present'><antcall target="deploy-to"><param name="deploy.dir" value="${web.dir}"/></antcall> @@ -241,7 +241,12 @@ <java classname="${facilitator.class}" classpathref="project.classpath" fork="yes"/></target><target name="deploy-server" depends="deploy, server"/> - <target name="server" depends="compile"> + <target name='check-configuration'> + <available file='${conf.dir}/server.xml' property='configuration.present'/> + <fail message="Did not find any configuration files in ${conf.dir}, please copy over an appropriate set of configuration files into ${conf.dir}" + unless="configuration.present" /> + </target> + <target name="server" depends="compile,check-configuration" if='configuration.present'><!-- make sure we update the configuration --><copy todir="${build.dir}/conf" overwrite="true"><fileset dir="${conf.dir}"/> @@ -251,6 +256,7 @@ <filter token="CODEBASE_URL" value="${codebase.url}"/></filterset></copy> + <java classname="${server.class}" classpathref="project.classpath" fork="yes"><jvmarg value="-server"/></java> Repository URL: https://bitbucket.org/virtualcommons/foraging/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |