Problem with jelly script
- From: "rajesh.shiggaon@xxxxxxxxx" <rajesh.shiggaon@xxxxxxxxx>
- Date: 8 May 2005 13:37:21 -0700
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 && 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<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 < 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
.
- Prev by Date: Re: lomboz3.0.1
- Next by Date: Pointer on reading a Windows .lnk file in Java
- Previous by thread: Weird Eclipse behaviour
- Next by thread: Pointer on reading a Windows .lnk file in Java
- Index(es):
Relevant Pages
|
|