jarsigner can't rename, ant keeps compiling

S

Sam Takoy

Hi,

It turns out that the two issues that have confounded me recently are
related.

First, jarsigner could not rename abc.jar to abc.jar.orig.

Second, I had a class that just kept compiling even if it wasn't changed.


I finally looked at the content of that file and it turns out that the
class was commented out except for the imports:

import java.util.*

/*
Rest commented out

*/

When I deleted this file, both issues solved themselves.


I'm happy that the issues are solved, but I would like to know why a
"blank" file like this can cause those problems.

Thanks in advance,

Sam
 
M

Mike Schilling

Sam Takoy said:
Hi,

It turns out that the two issues that have confounded me recently are
related.

First, jarsigner could not rename abc.jar to abc.jar.orig.

Second, I had a class that just kept compiling even if it wasn't changed.


I finally looked at the content of that file and it turns out that the
class was commented out except for the imports:

import java.util.*

/*
Rest commented out

*/

When I deleted this file, both issues solved themselves.


I'm happy that the issues are solved, but I would like to know why a
"blank" file like this can cause those problems.

The "keeps compiling" is easy It doesn't produce a class file, so to Ant it
looks like it was never compiled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top