[+1] agreed.
Am 28.02.11 12:13, schrieb Adelita Padilla:
Hi Wendy,
Thanks for your comments.
Instead of having a profile (sounds error-prone), we could set the path as
property (we could use the 'localRepository' property) using a command line
switch (so it still match the behavior of Maven).
So for example, user will input -DlocalRepository="D:\test\repository", NPanday will
assume that both settings.xml and npanday-settings.xml are located in "D:\test"
directory. Since npanday-settings.xml is generated, NPanday will check on the specified directory
for that file. If ever npanday-settings.xml doesn't exist yet, NPanday will generate the file in
that specified path.
Does it make sense?
Any objections/clarifications/suggestions?
Thanks,
--
liit
----- "Wendy Smoak"<[email protected]> wrote:
On Tue, Feb 15, 2011 at 5:58 AM, Adelita Padilla<[email protected]>
wrote:
For the possible fix for this issue, I'd agree with Terence's
suggestion that we have an additional NPANDAY profile set in the
settings.xml. A property is set in the profile that will contain the
path to where npanday-settings.xml will be generated. NPanday will
check first if that certain profile is not null, then check if the
property is not null also. The path specified in the property will be
the path where NPanday will generate the npanday-settings.xml file.
If no profile/property is set, NPanday will generate
npanday-settings.xml in .m2 folder.
Here's the issue: https://issues.apache.org/jira/browse/NPANDAY-361
Adding a(nother) profile to settings.xml sounds error prone. I'd
prefer to have it match the behavior of Maven as closely as possible,
which I think means using a command line switch.
How about just looking for that switch and assuming that settings.xml
and npanday-settings.xml are in the same place? Is there any reason
for the NPanday settings to need to live in a different place than
the
regular settings?
If so, then I suppose a property is the way to go. But I would just
expect it to be set on the command line.
Because NPanday is the 'second' settings file, it will probably be
possible to set the property in settings.xml and it will be there by
the time NPanday wants it. I don't think this should require a
'special' profile id.
Keep it simple. :)
Comment from the peanut gallery: can you describe the problem you're
trying to solve when you propose a solution? For someone just
scanning the mailing list, this doesn't make much sense out of
context. But if you give more info you might get someone interested
enough to go read the full history (include a link to the issue
tracker?) and maybe even get involved to help. At a minimum you'll
insert some information in the casual observer's brain about How
Stuff
Works.
--
Wendy