I found this message in the archives:
http://sourceforge.net/mailarchive/message.php?msg_id=26211662
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).
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.
My deployment script contains:
#include "org/smartfrog/sfcore/workflow/components.sf"
DB_Stuff extends Sequence {
drop extends genericSQLCommand {
<stuff>
}
attach extends genericSQLCommand {
<stuff>
}
}
sfConfig extends Compound {
myDBStuff extends DB_Stuff;
}
And I am calling sf-run with:
<property name="smartfrog.dir" value="${SMARTFROG_HOME}"/>
<property name="smartfrog-tasks-jar"
value="${smartfrog.dir}/lib/sf-tasks-3.18.010.jar"/>
<property name="smartfrog-jar"
value="${smartfrog.dir}/lib/smartfrog-3.18.010.jar"/>
<property name="security.manager" value="none"/>
<taskdef resource="org/smartfrog/tools/ant/tasks.properties">
<classpath>
<pathelement location="${smartfrog-tasks-jar}"/>
<pathelement location="${smartfrog-jar}"/>
</classpath>
</taskdef>
<target name="Deploy">
<jar destfile="${env.WORKSPACE}\SmartFrogProject/optum-sf.jar"
basedir="${env.WORKSPACE}\SmartFrogProject\src"/>
<copy file="attach.sf" tofile="C:\temp\attach.sf"/>
<path id="smartfrog.classpath">
<fileset dir="${SMARTFROG_HOME}/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${env.WORKSPACE}\SmartFrogProject\">
<include name="**/*.jar"/>
</fileset>
</path>
<sf-run
securityManager="${security.manager}"
classpathref="smartfrog.classpath"
failonerror="true">
<application name="attachdb" file='C:\temp\attach.sf' />
</sf-run>
</target>
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.
------------------------------------------------------------------------------
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
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users