create 2 projects using same source tree ( change project.build.sourceRoot
of both project point to the same tree) then tinker with the compiler plugin
configuration.

but you must have 2 diffrent artifact ids thou

-Dan



On 1/26/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:
>
> Thanks, I get what you want to do.
>
> But how do you produce the two different jars? How do you set the
> "different options" that you said with ant?  is there a config file or a
> command-line argument that "build_release" and "build_debug" uses?
>
>
> Paolo Perrucci wrote:
>
> > Hi Edwin,
> >
> > in my existing ant build I have two tasks that compile the same
> > sources (with different options) and create the jar files.
> > I have a task named "build" that call sequentially the tasks
> > "build_release" and "build_debug".
> > After calling the "build" task I have two jars: <project_name>.jar and
> > <project_name_d>.jar. The "_d" is used for the jar file containing
> > class files compiled with debug infos.
> >
> > Thank you
> > Paolo
> >
> >
> > Edwin Punzalan ha scritto:
> >
> >>
> >> Hi,
> >>
> >>
> >> In your ant build, how do you setup your two jars?
> >> Is there a config file that should be changed for the debug infos?
> >>
> >> Or do you need to compile once for two jars? or do you recompile for
> >> the second jar?
> >>
> >> Or both?
> >>
> >> Please provide more info and maybe we can help.
> >>
> >> ^_^
> >>
> >>
> >>
> >> Paolo Perrucci wrote:
> >>
> >>> Hi all,
> >>>
> >>> to experiment with m2 I'm trying to define the pom for a "legacy"
> >>> project build with ant.
> >>> The existing ant build process create two jar: with and without
> >>> debug infos.
> >>> How can I use m2 to create the same jars without using the old ant
> >>> build?
> >>>
> >>> Thanks
> >>> Paolo
> >>>
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to