This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 15959
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 15959
    
  19

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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ant script and solaris package
 
Similar Threads
How to create solaris package using Maven
Can Ant run script generated by XDE?
empty EJB deployable files getting created!!
log4j:ERROR Could not create an Appender on Weblogic91 startup
Ant and Websphere