[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    AW: jar and isempty
From:       "Com Pegasus-CC-Hotline" <pegasus-cc-hotline.com () siemens ! com>
Date:       2005-12-20 10:48:36
Message-ID: 6F0CB04509C11D46A54232E852E390AC9EC35E () MCHP7R6A ! ww002 ! siemens ! net
[Download RAW message or body]

Hello,

probably you can set a property with the 

<available classpath=your_jarfile_ONLY 
           classname=one_of_the_classes_that should_be inside>

cu,
  Thomas


-----Ursprüngliche Nachricht-----
Von: Kamal Bhatt [mailto:kbhatt@tt.com.au] 
Gesendet: Dienstag, 20. Dezember 2005 02:23
An: Ant Users List
Betreff: jar and isempty


Hi
I am creating a jar file and I would like the script to fail if the jar 
file is not going to be composed of any significant files (I do not view 
the manifest files as significant in this case)

I used whenempty="fail" and instead of failure I get a stupid message 
telling me that a jar file is never empty (because of the manifest 
file). Is there a way of making it work the way I expect it to work (ie 
failing when there are no files in the file set) instead of this rather 
unhelpful way?

Thanks.

Kamal.

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


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic