This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant script and solaris package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant script and solaris package" Watch "ant script and solaris package" New topic
Author

ant script and solaris package

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
Hi there,
How do I create solaris package using ant script ?
Any information is appreciated.
thanks
siva
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17148
    
  27

Well, in my case, the build itself is done on a Windows machine. So what I do is create a dist/solaris directory with the Solaris package sources in it and manually scp the whole directory up to the Solaris box where I run a pkgmk script on it.

There are ways to do this more automatically. Among them are:

1. Run the build on a Solaris box (requires jdk+ant) and execute the pkgmk command via Ant's exec task.

2. Have Ant do the scp itself (requires extra Ant plugin), then login and run pkgmk.

3. setup a cygwin environment and have it scp, then do ssh run pkgmk from a cygwin shell script.

Personally, I'm thinking about #4. Setup a web cgi task on the Solaris box where I can upload a tar or zip copy of the package source and have the cgi tun the pkgmk. Just not thinking very hard about it yet.


An IDE is no substitute for an Intelligent Developer.
Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
Thank You.
I am using my ant in solaris environment.
If any one has any sample code to build solaris package,
that would be very helpful.
thnaks
siva
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17148
    
  27

This is all your fault! I added this to our favorite apps Friday. Finally decided to stop uloading builds from Windows.


For convenience' sake, I've been putting all the package source files in a "dpkg" subdirectory of the Solaris distribution build directory and including a build script (mkpkg.sh). It looks like this:

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
WOW! this is very kind of you.
BTW, what is "popd" and "pushd" means ?
thanks
siva
[ December 09, 2004: Message edited by: Siva kandasamy ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant script and solaris package
 
It's not a secret anymore!