Ant sf-run task not blocking?
"Lavoie, John L" <[email protected]> Mon, 20 Jun 2011 19:16:10 -0500
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <88A74C8405352445B2B06CA906EB14E204F18980@APSW0631EVS.ms.ds.uhc.com> |
This is a multi-part message in MIME format.
--===============6115487481088845528==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CC2FA8.6CE60BC0"
This is a multi-part message in MIME format.
------_=_NextPart_001_01CC2FA8.6CE60BC0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I found this message in the archives:
=20
http://sourceforge.net/mailarchive/message.php?msg_id=3D26211662
=20
Has there been any update on it? What about a workaround?
I have a script that is behaving correctly if I call sfrun on the
command line. But when I attempt to automate this into my build through
ant, it is exiting after the first component completes (the "drop"
below).
=20
Also, there seems to be a bug where sf-run cannot handle a space in the
path to the .sf file. I need to move my .sf file to a temp directory
that does not have spaces in order to get it to run through ant.
=20
My deployment script contains:
=20
#include "org/smartfrog/sfcore/workflow/components.sf"
DB_Stuff extends Sequence {
drop extends genericSQLCommand {
<stuff> =20
}
=20
attach extends genericSQLCommand {
<stuff>
}
}
=20
sfConfig extends Compound {
myDBStuff extends DB_Stuff;
}
=20
And I am calling sf-run with:
=20
<property name=3D"smartfrog.dir" value=3D"${SMARTFROG_HOME}"/>
<property name=3D"smartfrog-tasks-jar"
value=3D"${smartfrog.dir}/lib/sf-tasks-3.18.010.jar"/>
<property name=3D"smartfrog-jar"
value=3D"${smartfrog.dir}/lib/smartfrog-3.18.010.jar"/>
=20
<property name=3D"security.manager" value=3D"none"/>
=20
<taskdef resource=3D"org/smartfrog/tools/ant/tasks.properties">=20
<classpath>
<pathelement location=3D"${smartfrog-tasks-jar}"/>
<pathelement location=3D"${smartfrog-jar}"/>
</classpath>
</taskdef>
=20
<target name=3D"Deploy">
=20
<jar destfile=3D"${env.WORKSPACE}\SmartFrogProject/optum-sf.jar"
basedir=3D"${env.WORKSPACE}\SmartFrogProject\src"/> =20
=20
<copy file=3D"attach.sf" tofile=3D"C:\temp\attach.sf"/>
=20
<path id=3D"smartfrog.classpath">
<fileset dir=3D"${SMARTFROG_HOME}/lib">
<include name=3D"**/*.jar" />
</fileset>
<fileset dir=3D"${env.WORKSPACE}\SmartFrogProject\">
<include name=3D"**/*.jar"/>
</fileset>
=20
=20
</path>
=20
<sf-run
securityManager=3D"${security.manager}"
classpathref=3D"smartfrog.classpath"
failonerror=3D"true">
<application name=3D"attachdb" file=3D'C:\temp\attach.sf' />
</sf-run>
=20
</target>
=20
=20
John Lavoie
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
------_=_NextPart_001_01CC2FA8.6CE60BC0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.6082" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>I found t=
his message=20
in the archives:</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2><A=20
href=3D"http://sourceforge.net/mailarchive/message.php?msg_id=3D26211662">h=
ttp://sourceforge.net/mailarchive/message.php?msg_id=3D26211662</A></FONT><=
/SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>Has there=
been any=20
update on it? What about a workaround?<BR><BR>I have a script th=
at is=20
behaving correctly if I call sfrun on the command line. But when I at=
tempt=20
to automate this into my build through ant, it is exiting after the first=20
component completes (the "drop" below).</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>Also, the=
re seems to=20
be a bug where sf-run cannot handle a space in the path to the .sf file.&nb=
sp; I=20
need to move my .sf file to a temp directory that does not have spaces in o=
rder=20
to get it to run through ant.</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>My deploy=
ment script=20
contains:</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>#include=20
"org/smartfrog/sfcore/workflow/components.sf"</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>DB_Stuff =
extends=20
Sequence {</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2><BR> =
; drop=20
extends genericSQLCommand=20
{<BR> <stuff> &nb=
sp; </FONT=
></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011></SPAN><SPAN class=3D431552821-200620=
11><FONT=20
face=3DArial size=3D2> }<BR> </FONT></SPAN><SPAN=20
class=3D431552821-20062011><BR><FONT face=3DArial size=3D2> atta=
ch extends=20
genericSQLCommand {<BR> <SPAN=20
class=3D431552821-20062011> =
<stuff></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D431552821-20062011></SPAN> }</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D431552821-20062011>}</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>sfConfig =
extends=20
Compound {</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2> &nb=
sp; =20
myDBStuff extends DB_Stuff;</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2>}</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>And I am =
calling=20
sf-run with:</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2><prope=
rty=20
name=3D"smartfrog.dir" value=3D"${SMARTFROG_HOME}"/><BR> <proper=
ty=20
name=3D"smartfrog-tasks-jar"=20
value=3D"${smartfrog.dir}/lib/sf-tasks-3.18.010.jar"/><BR> <prop=
erty=20
name=3D"smartfrog-jar"=20
value=3D"${smartfrog.dir}/lib/smartfrog-3.18.010.jar"/><BR> <BR>&nb=
sp;<property=20
name=3D"security.manager" value=3D"none"/></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2> <=
;taskdef=20
resource=3D"org/smartfrog/tools/ant/tasks.properties"> <BR> =20
<classpath><BR> <pathelement=20
location=3D"${smartfrog-tasks-jar}"/><BR> =20
<pathelement location=3D"${smartfrog-jar}"/><BR> =20
</classpath><BR> </taskdef></FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2><targe=
t=20
name=3D"Deploy"><BR> <BR> <jar=20
destfile=3D"${env.WORKSPACE}\SmartFrogProject/optum-sf.jar"<BR> =
=20
basedir=3D"${env.WORKSPACE}\SmartFrogProject\src"/> =20
<BR>  =
;=20
<BR> <copy file=3D"attach.sf"=20
tofile=3D"C:\temp\attach.sf"/><BR> <BR> <path=20
id=3D"smartfrog.classpath"><BR>  =
; =20
<fileset=20
dir=3D"${SMARTFROG_HOME}/lib"><BR> &n=
bsp; =20
<include name=3D"**/*.jar"=20
/><BR> =20
</fileset><BR> =20
<fileset=20
dir=3D"${env.WORKSPACE}\SmartFrogProject\"><BR> &=
nbsp; =20
<include=20
name=3D"**/*.jar"/><BR> &=
nbsp;=20
</fileset></FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2> <BR> =20
</path></FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV><SPAN class=3D431552821=
-20062011>
<DIV><BR><FONT face=3DArial=20
size=3D2> <sf-run<BR> securityManager=3D"${s=
ecurity.manager}"<BR> classpathref=3D"smartfrog.classpath"=
<BR> failonerror=3D"true"><BR> <app=
lication=20
name=3D"attachdb" file=3D'C:\temp\attach.sf' /></FONT></DIV>
<DIV><BR><FONT face=3DArial=20
size=3D2> </sf-run><BR> <BR> </target&g=
t;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>John=20
Lavoie</FONT></SPAN></SPAN></SPAN></DIV><font face=3D"monospace"><br>
This e-mail, including attachments, may include confidential and/or<br>
proprietary information, and may be used only by the person or entity<br>
to which it is addressed. If the reader of this e-mail is not the intended<=
br>
recipient or his or her authorized agent, the reader is hereby notified<br>
that any dissemination, distribution or copying of this e-mail is<br>
prohibited. If you have received this e-mail in error, please notify the<br>
sender by replying to this message and delete this e-mail immediately.</fon=
t></BODY></HTML>
------_=_NextPart_001_01CC2FA8.6CE60BC0--
--===============6115487481088845528==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
--===============6115487481088845528==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Smartfrog-users mailing list
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users
--===============6115487481088845528==--