Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant script and solaris package

 
Siva kandasamy
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
How do I create solaris package using ant script ?
Any information is appreciated.
thanks
siva
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Siva kandasamy
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WOW! this is very kind of you.
BTW, what is "popd" and "pushd" means ?
thanks
siva
[ December 09, 2004: Message edited by: Siva kandasamy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic