ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BHechan...@microgeneral.com
Subject RE: can I use a fileset with signjar task?
Date Thu, 21 Feb 2002 02:27:05 GMT
I'm having a problem using the fileset.  It doesn't seem to be picking up my
directory correctly.
I'm very new to Ant, but I think I am following everything correctly.

I see that the FileSet output is setting up for the correct directory.
But the command that is actually doing the jarsigner isn't using that
directory.


Here's the ant script portion:
	<target name="signjars" depends="init" >
		<signjar alias="${name}" 
		     storepass="${password}" 
		      keystore="${keystore.name}" >

			<fileset dir="${build.dir.jarsign}">
				<include name="**/*.jar" />
			</fileset>
		</signjar>
   
And here's the error

signjars:
FileSet: Setup file scanner in dir E:\temp\install\build\jarsign with
patternSet{ includes: [**/*.jar] excludes: [] }
   +Task: exec
  [signjar] Signing Jar : E:\temp\install\ejs.jar
  [signjar] Current OS is Windows 2000
  [signjar] jarsigner -keystore TmpKeyStore -storepass password ejs.jar
Employee
Execute:CommandLauncher: cmd /c cd /d E:\temp\install && jarsigner -keystore
TmpKeyStore -storepass password ejs.jar Employee
  [signjar] jarsigner: unable to open jar file: ejs.jar

BUILD FAILED

E:\temp\install\setupclient.xml:108: exec returned:	 1
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at java.lang.RuntimeException.<init>(RuntimeException.java:49)
        at
org.apache.tools.ant.BuildException.<init>(BuildException.java:126)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:253)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:279)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:177)
        at org.apache.tools.ant.taskdefs.SignJar.doOneJar(SignJar.java:255)
        at org.apache.tools.ant.taskdefs.SignJar.execute(SignJar.java:179)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

I'm using ant 1.4.1

Thanks,
Beth

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Wednesday, February 20, 2002 5:05 PM
To: Ant Users List
Subject: Re: can I use a fileset with signjar task?


--- BHechanova@microgeneral.com wrote:
> But I don't see fileset as a parameter 

You can use a nested <fileset> -- it just didn't get documented until
after the release.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message