ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » jar source inside bar file

Post new topic  Reply to topic
 jar source inside bar file « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Tue Apr 12, 2016 8:31 am    Post subject: jar source inside bar file Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

I am building a bar and the reference java project ends up inside the bar file as a jar file. Is there a way to make that jar file also include java source files?

I am trying to compare bars between current deployment and previous deployments and deploy only the bars that have changed as part of automated build deploy process.

the problem is that when java code changes, it is getting complicated to compare the jar within the bars since it is compiled format. Figured it might help to compare the source if there is an option to compare the source.

Please share your thoughts. thanks.
Back to top
View user's profile Send private message Yahoo Messenger
ganesh
PostPosted: Tue Apr 12, 2016 11:27 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

Just curious, even the bar files have complied code so how are you able to compare the bar files?
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Tue Apr 12, 2016 11:49 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

these are the 4 things i compare

1. .cmf (xml file)
2. broker.xml
3..dictionary file
4. jar file

first three works ok. Issue is only with jar.
Back to top
View user's profile Send private message Yahoo Messenger
ganesh
PostPosted: Tue Apr 12, 2016 11:59 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

You can stick in a version number during the build in your jar file and use that to compare.

or there is a utility called zipdiff which can be bundled in ant.

Quote:

Below snippet is from sourceforge.net


Code:
<taskdef name="zipdiff" classname="zipdiff.ant.ZipDiffTask"/>

<zipdiff filename1="foo.zip"
    filename2="foo2.zip"
    ignoreTimestamps="true"
    compareCRCValues="true"
    destfile="zipdiff.xml">
</zipdiff>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » jar source inside bar file
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.