• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant script and solaris package

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
How do I create solaris package using ant script ?
Any information is appreciated.
thanks
siva
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic