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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>Has there=
 been any=20
update on it?&nbsp; What about a workaround?<BR><BR>I have a&nbsp;script th=
at is=20
behaving correctly if I call sfrun on the command line.&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp=
;&nbsp;drop=20
extends genericSQLCommand=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;stuff&gt;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT=
></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011></SPAN><SPAN class=3D431552821-200620=
11><FONT=20
face=3DArial size=3D2>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;</FONT></SPAN><SPAN=20
class=3D431552821-20062011><BR><FONT face=3DArial size=3D2>&nbsp;&nbsp;atta=
ch extends=20
genericSQLCommand {<BR>&nbsp;<SPAN=20
class=3D431552821-20062011>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&lt;stuff&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D431552821-20062011></SPAN>&nbsp;&nbsp;}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D431552821-20062011>}</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;&nb=
sp;&nbsp;=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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>&lt;prope=
rty=20
name=3D"smartfrog.dir" value=3D"${SMARTFROG_HOME}"/&gt;<BR>&nbsp;&lt;proper=
ty=20
name=3D"smartfrog-tasks-jar"=20
value=3D"${smartfrog.dir}/lib/sf-tasks-3.18.010.jar"/&gt;<BR>&nbsp;&lt;prop=
erty=20
name=3D"smartfrog-jar"=20
value=3D"${smartfrog.dir}/lib/smartfrog-3.18.010.jar"/&gt;<BR>&nbsp;<BR>&nb=
sp;&lt;property=20
name=3D"security.manager" value=3D"none"/&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>&nbsp;&lt=
;taskdef=20
resource=3D"org/smartfrog/tools/ant/tasks.properties"&gt; <BR>&nbsp;&nbsp;=20
&lt;classpath&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;pathelement=20
location=3D"${smartfrog-tasks-jar}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;pathelement location=3D"${smartfrog-jar}"/&gt;<BR>&nbsp;&nbsp;=20
&lt;/classpath&gt;<BR>&nbsp;&lt;/taskdef&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial size=3D2>&lt;targe=
t=20
name=3D"Deploy"&gt;<BR>&nbsp;<BR>&nbsp;&nbsp;&lt;jar=20
destfile=3D"${env.WORKSPACE}\SmartFrogProject/optum-sf.jar"<BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;basedir=3D"${env.WORKSPACE}\SmartFrogProject\src"/&gt;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&nbsp;&nbsp;<BR>&nbsp;&nbsp;&lt;copy file=3D"attach.sf"=20
tofile=3D"C:\temp\attach.sf"/&gt;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&lt;path=20
id=3D"smartfrog.classpath"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
&lt;fileset=20
dir=3D"${SMARTFROG_HOME}/lib"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;include name=3D"**/*.jar"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/fileset&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;fileset=20
dir=3D"${env.WORKSPACE}\SmartFrogProject\"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&lt;include=20
name=3D"**/*.jar"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
&lt;/fileset&gt;</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D431552821-20062011><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&lt;/path&gt;</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><SPAN class=3D431552821=
-20062011>
<DIV><BR><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&lt;sf-run<BR>&nbsp;&nbsp;&nbsp;securityManager=3D"${s=
ecurity.manager}"<BR>&nbsp;&nbsp;&nbsp;classpathref=3D"smartfrog.classpath"=
<BR>&nbsp;&nbsp;&nbsp;failonerror=3D"true"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;app=
lication=20
name=3D"attachdb" file=3D'C:\temp\attach.sf' /&gt;</FONT></DIV>
<DIV><BR><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&lt;/sf-run&gt;<BR>&nbsp;&nbsp;<BR>&nbsp;&lt;/target&g=
t;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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==--