Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 95165 invoked from network); 9 Oct 2008 16:17:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 16:17:19 -0000 Received: (qmail 29481 invoked by uid 500); 9 Oct 2008 16:17:18 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Delivered-To: moderator for jdo-dev@db.apache.org Received: (qmail 8907 invoked by uid 99); 7 Oct 2008 08:37:30 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Message-ID: <48EB1EEF.90704@akquinet.de> Date: Tue, 07 Oct 2008 10:33:51 +0200 From: Michael Bouschen Organization: akquinet tech@spree GmbH User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Re: question about maven build goals.... References: <59712D9D-817A-4110-A135-029D319A83DD@SUN.com> <0FFBD365-7350-415B-B658-7E40D4193DAC@SUN.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 07 Oct 2008 08:33:47.0082 (UTC) FILETIME=[6A802AA0:01C92857] X-Virus-Checked: Checked by ClamAV on apache.org Hi Richard, I'm surprised you see this error when running 'maven javadoc'. What I recall is that this check for the directory name is done when running a distribution (e.g. maven dist). I could run maven javadoc in api2 w/o any problems. Even after renaming the root directory jdo to a different name it still works. You might want to run maven in debug mode 'maven -X javadoc' and see whether this gives some useful information. Attention: the output is very verbose :-). Regards Michael > O.K. That makes more sense. However, I am executing maven from the directory structure you suggest, and still get that error. My specific directory is: > > jdo/trunk/api2 > > > > Richard > -----Original Message----- > From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] > Sent: Monday, October 06, 2008 8:00 PM > To: jdo-dev@db.apache.org > Subject: Re: question about maven build goals.... > > The source tree is rooted at svn... jdo/trunk/tck2. > > The script goes up the tree looking for the thing above trunk (or if > you're in a branch, the thing above branches). That directory has to > be named xxxjdo. > > Craig > > On Oct 6, 2008, at 7:56 PM, Richard Schilling - Consultant wrote: > > >> Or, I should say.... >> >> The source tree of the project doesn't really have any directory >> paths that end in "jdo" and also have maven build files in them.... >> >> Richard >> >> -----Original Message----- >> From: Richard Schilling - Consultant [mailto:w-richard@ontela.com] >> Sent: Monday, October 06, 2008 7:30 PM >> To: jdo-dev@db.apache.org >> Subject: RE: question about maven build goals.... >> >> Well that poses an interesting problem. Or, perhaps I'm just >> confused at this point. Both are equally possible :-) >> >> The source tree of the project doesn't really have any directory >> paths that end in "jdo". So, from where in the tree, exactly, do I >> run maven? >> >> Even the instructions in README.html say to change to the tck >> directory before running "maven build". >> >> >> >> Richard >> >> -----Original Message----- >> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] >> Sent: Monday, October 06, 2008 7:15 PM >> To: jdo-dev@db.apache.org >> Subject: Re: question about maven build goals.... >> >> Michelle added this test to the maven script recently. >> >> Bottom line: you have to run from a directory that ends in "jdo" or >> stuff won't work. >> >> But it sounds like the test should first check for basedir.lastIndex >> being negative 1 and not go ahead and try to create a substring... >> >> Craig >> >> On Oct 6, 2008, at 6:46 PM, Richard Schilling - Consultant wrote: >> >> >>> When I run the maven javadoc target from the API2 directory, I get >>> the following error back >>> >>> $ cd trunk\api2 >>> $ maven javadoc >>> >>> __ __ >>> | \/ |__ _Apache__ ___ >>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ >>> |_| |_\__,_|\_/\___|_||_| v. 1.1 >>> >>> Caught exception evaluating: basedir.substring(0, >>> basedir.lastIndexOf('jdo')). Reason: >>> java.lang.StringIndexOutOfBoundsException: String index out of >>> range: -1 >>> java.lang.StringIndexOutOfBoundsException: String index out of >>> range: -1 >>> at java.lang.String.substring(String.java:1938) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun >>> .reflect >>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun >>> .reflect >>> .DelegatingMethodAccessorImpl >>> .invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at org.apache.commons.jexl.util.introspection.UberspectImpl >>> $VelMethodImpl.invoke(UberspectImpl.java:231) >>> at >>> org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) >>> at >>> org >>> .apache.commons.jexl.parser.ASTReference.execute(ASTReference.java: >>> 82) >>> >>> >>> ... add nausium >>> >>> The javadoc target seems to run, however and generate javadoc items. >>> >>> But, what causes this error exactly, and how do I avoid it? >>> >>> Jira bug JDO 603 (https://issues.apache.org/jira/browse/JDO-603) >>> suggests that a directory name has to contain the text "jdo". >>> >>> The build documentation doesn't specify build instructions >>> completely - something I'll be updating, BTW when I get this >>> question answered ... >>> >>> Thanks in advance. >>> >>> >>> >>> Richard Schilling >>> >>> >>> >> Craig L Russell >> Architect, Sun Java Enterprise System http://db.apache.org/jdo >> 408 276-5638 mailto:Craig.Russell@sun.com >> P.S. A good JDO? O, Gasp! >> >> >> >> >> > > Craig L Russell > Architect, Sun Java Enterprise System http://db.apache.org/jdo > 408 276-5638 mailto:Craig.Russell@sun.com > P.S. A good JDO? O, Gasp! > > > -- *Michael Bouschen* *Prokurist* akquinet tech@spree GmbH Tempelhofer Ufer 23-24, D-10963 Berlin B�lowstr. 66, D-10783 Berlin Fon: +49 30 235 520-33 Fax: +49 30 217 520-12 Email: michael.bouschen@akquinet.de Url: www.akquinet.de akquinet tech@spree GmbH, Berlin Gesch�ftsf�hrung: Prof. Dr. Christian Roth, Hendrik Saly, Martin Weber Amtsgericht Berlin-Charlottenburg HRB 86780 USt.-Id. Nr.: DE 225 964 680