Problem with jelly script



Hi Guys:--

I have a problem regarding with a jelly script :-

i am able to print all the values tiffcpArgs, mergedDocName but my ant
script fails to read these values. When i hard code it it runs
perfectly fine. I am placing a part of a script. Hope this understands
....


<bsh:script>
<!-- Read back all the variables from the context -->
boolean currentPageBlank = context.getVariable("currentPageBlank");
boolean previousPageBlank =
context.getVariable("previousPageBlank");

<!-- if there is no blank image at the very end of the scanned
Document -->
if( previousPageBlank == false &amp;&amp; currentPageBlank == false )
{

ArrayList al = context.getVariable("al");
ArrayList al2 = context.getVariable("al2");
Vector docVector = context.getVariable("docVector");
int docIndex = context.getVariable("docIndex");

<!-- Make a string of the file names which as to be merged to form
a document -->
for(int i=0; i&lt;al.size()-1; i++ ) {
tiffcpArgs = tiffcpArgs + " " + al.get(i);
tiffcpFile = tiffcpFile + "_" + al2.get(i);
}
context.setVariable("tiffcpArgs", tiffcpArgs);

<!-- mergeDocName (Username+predefinedDocument.tif) is set
which is used to give the name for the current merging document
-->
String mergedDocName = "";
if ( docIndex &lt; docVector.size() )
mergedDocName = "SB" + ( (String) docVector.elementAt( docIndex++)
) + ".tif";
else
mergedDocName = "SB" +"Indexismore.tif";
context.setVariable("mergedDocName", mergedDocName);

<!-- Merge all the pages to form a small document -->
<ant:exec executable="/bin/bash" errorproperty="error"
resultproperty="result" outputproperty="output">
<ant:arg value="-c"/>
<ant:arg value="tiffcp ${tiffcpArgs}
${mergedDir}/${mergedDocName}"/>
</ant:exec>
}

Thanks in advance

Rajesh S

.



Relevant Pages

  • Re: EnumLocalGroup - fails when "NT AUTORITY/SYSTEM" is member of group
    ... I am using modified version of Richard Muellars script to enumerate ... What I am finding is the the script fails when it hits a server that ... On Error GoTo 0 ... since there cannot be members. ...
    (microsoft.public.windows.server.scripting)
  • Re: Copy Script
    ... if the script fails because a file is in use or a ... script to fail on i.e. filename/path? ... goes for the CopyHere method. ... I use good old Xcopy to get ...
    (microsoft.public.scripting.vbscript)
  • Re: Reading Registry
    ... You are right that if "winmgmts" were case sensitive, ... The program seems to work for me if I substitute strComputer for compname, ... If this is run as a logon script, you can retrieve the computer name from ... the computers where the script fails, ...
    (microsoft.public.scripting.vbscript)
  • Re: Merge replication - Check network document
    ... The keep alive script Paul mentions should be run on the Subscriber against ... the Publisher as an osql script. ... When the script fails it will give you the ...
    (microsoft.public.sqlserver.replication)
  • How to unmap "ghost" network drive
    ... There is a script calling by System Agent that maps external network share to drive letter. ... When this script fails without unmapping network drive, ... My Windows is 2000 Server SP4 with Terminal Services. ...
    (microsoft.public.windows.server.networking)