[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ganymede Dev] Re: Ganymede 1.0.11 Build Script Problem/Question

Date Wed, 25 Jun 2003 15:46:36 -0500
From Jonathan Abbey <jonabbey@arlut.utexas.edu>

Taking this conversation to the public ganymede-dev mailing list,
(which I've added you to, Dan).  Dan is looking at adopting the
gashKit for NIS and DNS management at LLNL.

On Tue, Jun 24, 2003 at 08:18:42AM -0700, Dan Pine wrote:
|
| Jonathan,
| 
| I want to thank you again for your support.  Setting the
| ganymede.builder.scriptlocation variable in ganymede.properties did the trick.
| Build script running OK.  Have another question.  I have been successfully
| customizing the output from Ganymede into the output files to look like typical
| NIS maps for passwd, hosts, et al, by simply commenting out the fields I don't
| want printed in GASHBuilderTask.java and recompiling.  However,  I would like to
| create a new call section in BuilderPhase(1) and it's corresponding private method
| (writeShadow() perhaps)for writing out a separate shadow file with just the fields
| I want.

Sure, reasonably enough.

I might suggest, however, that for this kind of task, you might be
happier just having a Perl script generate the shadow map file from
the user_info file that Ganymede spits out.

In general, it's simpler to use external scripting languages to
process Ganymede's build output than to modify the Java code every
time to support new variations on data file generation.

| Yesterday I tried to duplicate the calling section in BuilderPhase(1) that calls
| writeUserLine() and then just modifying it for the shadow file. I also copied the
| private method for writeUserLine and renamed it writeShadow() and made all the
| changes I thought necessary to write to the output/shadow file.   Unfortunately,
| when I tried to compile and got numerous error messages about unrecognized
| references.

Could you send me a copy of your (I presume) GASHBuilderTask.java file
that includes your new code, or at least the error messages you got
back from the compiler?

| 1.    Do I need to pre-register this new method and/or calling section somewhere?

Nope.  There's absolutely nothing special that you should have to be
aware of in adding new code to the builderTask class, apart from the
standard Java things.

| 2.    Does this mean that an object is referenced, but not defined?

I don't know what you mean by this, I'm afraid.

| 3.    Any suggestions on how I could do this if I'm on the wrong track?
| 
| I wouldn't mind at all being a part of your public discussions and/or development
| discussion group.  I'm sure I would benefit as well.
| 
| Thanks again!
| 
| Dan

-- 
-------------------------------------------------------------------------------
Jonathan Abbey 				              jonabbey@arlut.utexas.edu
Applied Research Laboratories                 The University of Texas at Austin
GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey.gpg

Attachment: pgp00012.pgp
Description: PGP signature