In the windows script, I introduced a new variable for the debug settings -
perhaps we can do the same for the shell scripts.

Am Freitag, 24. April 2015 schrieb Francisco Collao Gárate :

> Yep the behavior is different, in my case I was using a .mavenrc, so
> when I use the mvnDebug add all options for opts and debug BUT.. when
> finally execute mvn bin all that env variables are deleted with this
> peace of code:
>
> if [ -z "$MAVEN_SKIP_RC" ] ; then
>
>   if [ -f /etc/mavenrc ] ; then
>     . /etc/mavenrc
>   fi
>
>   if [ -f "$HOME/.mavenrc" ] ; then
>     . "$HOME/.mavenrc"
>   fi
>
> fi
>
> After that moment MAVEN_OPTS are right (debug options + maven_opts),
> when load .mavenrc ( .$HOME/.mavenrc) clank! all env variables are
> deleted!.
>
> I think the old way to exectute mvnDebug was fine or maybe use new env
> vars for the new one.
>
> Best Regards
>
> On Thu, Apr 9, 2015 at 11:59 AM, Robert Patrick
> <[email protected] <javascript:;>> wrote:
> > I sent an email this weekend pointing out the difference in behavior of
> mvnDebug between Windows and Linux/Unix.  Whether you consider it a bug or
> not, there is no doubt that the behavior is different.  If you wanted to
> reconcile the differences, I would do something like this:
> >
> > index 902de4a..0f5427a 100755
> > --- a/apache-maven/src/bin/mvn
> > +++ b/apache-maven/src/bin/mvn
> > @@ -226,6 +226,7 @@ export MAVEN_CMD_LINE_ARGS
> >
> >  exec "$JAVACMD" \
> >    $MAVEN_OPTS \
> > +  $MAVEN_DEBUG_OPTS \
> >    -classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
> >    "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
> >    "-Dmaven.home=${M2_HOME}"
> "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJEC
> >
> > diff --git a/apache-maven/src/bin/mvnDebug
> b/apache-maven/src/bin/mvnDebug
> > index 73905fd..a1077ce 100755
> > --- a/apache-maven/src/bin/mvnDebug
> > +++ b/apache-maven/src/bin/mvnDebug
> > @@ -38,4 +38,4 @@ MAVEN_DEBUG_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,server
> >
> >
> >  echo Preparing to Execute Maven in Debug Mode
> >
> > -env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" $(dirname $0)/mvn "$@"
> > +env MAVEN_OPTS="$MAVEN_OPTS" MAVEN_DEBUG_OPTS="$MAVEN_DEBUG_OPTS"
> $(dirname $0)
> >
> > --
> > Robert Patrick <[email protected] <javascript:;>>
> > VP, Oracle Corporation
> > 7460 Warren Pkwy, Ste. 300      Office: +1.972.963.2872
> > Frisco, TX 75034, USA           Mobile: +1.469.556.9450
> >
> > Professional Oracle WebLogic Server
> > by Robert Patrick, Gregory Nyberg, and Philip Aston
> > with Josh Bregman and Paul Done
> > Book Home Page: http://www.wrox.com/
> > Kindle Version: http://www.amazon.com/
> >
> >
> > -----Original Message-----
> > From: Francisco Collao Gárate [mailto:[email protected] <javascript:;>]
> > Sent: Thursday, April 09, 2015 9:38 AM
> > To: [email protected] <javascript:;>
> > Subject: mvnDebug with problems
> >
> > Hi,
> >
> > Based in this discussion over the Karl-Heinz Marbaise, someone had the
> opportunity to review if there is or not a bug with mvnDebug (version
> 3.3.1).
> >
> >
> http://blog.soebes.de/blog/2015/03/17/apache-maven-3-dot-3-1-features/#comment-1947464703
> >
> > If you need more information about this, I would like to help.
> >
> > Best Regards
> > --
> > Francisco Collao Gárate
> > LinuxUser #363300
> > http://blog.pcollaog.cl
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected] <javascript:;>
> For additional commands, e-mail: [email protected] <javascript:;>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected] <javascript:;>
> > For additional commands, e-mail: [email protected]
> <javascript:;>
> >
>
>
>
> --
> Francisco Collao Gárate
> LinuxUser #363300
> http://blog.pcollaog.cl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] <javascript:;>
> For additional commands, e-mail: [email protected] <javascript:;>
>
>

Reply via email to