Hi,

my current approach is to execute this command, which should work fine, since 
ant is used in a linux or cygwin environment:

zip -d target.jar `jar -tf compare.jar | grep \.class`

I am using this target:

<!--

  Purpose: removing all classes in one jar file, that are already present in 
another
  Input:
    expected properties
         ${jardelete.target}
         ${jardelete.compare}
    optional properties:

-->
        <target name="jardelete" depends="" >
                <exec executable="zip">
                        <arg value="-d"/>
                        <arg value="${jardelete.target}"/>
                        <arg value="`jar -tf ${jardelete.compare} | grep 
\.class`"/>
                </exec>
        </target>

But it won't work:

jardelete:
     [exec] Current OS is Windows 2000
     [exec] Executing 'zip' with arguments:
     [exec] '-d'
     [exec] 'target.jar'
     [exec] '`jar -tf compare.jar | grep \.class`'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'zip' with arguments:
'-d'
'target.jar'
'`jar -tf compare.jar | grep \.class`'

The ' characters around the executable and arguments are
not part of the command.
     [exec]     zip warning: name not matched: `jar -tf compare.jar | grep 
/.class`

     [exec] zip error: Nothing to do! (target.jar)


     [exec] Result: 12
  [antcall] Exiting <...>\build.xml.

Any idea how I have to invoke zip, to make the evaluation of the jar output 
work?

�_�������� __����� _� _
//\ndreas.[|-bbert(a)[|\|okia.com
���������� `-
   Andreas Ebbert
�� Software Design Engineer - Nokia Networks OSS 
�� gsm: +49-177-941-3928, fax: +49-211-9412-3838
�� Heltorfer Stra�e 1, 40472 D�sseldorf, Germany 

----------------------------------------------------------------------
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, D�sseldorf, Germany and from the
website at http://www.nokia.com/
----------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to