Return-Path: Delivered-To: apmail-maven-doxia-users-archive@www.apache.org Received: (qmail 30231 invoked from network); 26 Jun 2008 11:28:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 11:28:30 -0000 Received: (qmail 28899 invoked by uid 500); 26 Jun 2008 11:28:32 -0000 Delivered-To: apmail-maven-doxia-users-archive@maven.apache.org Received: (qmail 28842 invoked by uid 500); 26 Jun 2008 11:28:31 -0000 Mailing-List: contact doxia-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: doxia-users@maven.apache.org Delivered-To: mailing list doxia-users@maven.apache.org Received: (qmail 28831 invoked by uid 99); 26 Jun 2008 11:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 04:28:31 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of westerhoff@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 11:27:41 +0000 Received: by wa-out-1112.google.com with SMTP id v33so1215234wah.2 for ; Thu, 26 Jun 2008 04:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=Gq2S9QXCpTwls8wkyAfoOPhzqoFpZXVSXdA5jaHvhmM=; b=fYsTAzXxOldxyn4t6rOVytHdH4778vYvwYagBjmAIxqi3iniCFmMwY1m37riLULT8H OhdyMtsRp96PX6wUwKgarkg1c4ODapst0b5Hw9sO5/439JhMVlCXFF9Z3D/Urf6G7y98 4Y5q8AlHH+56Z1lvZSR6nUH7S7pHhZTmXpA0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=lYC9u0UzZiAqoNR5S//eeepypuZPweNDMMxJon23J9LW9pb3MG/Gm7yiO4E9nPfIpK uzv7FLHebG+fjAkaDgre4tbPaT/dCsStrtT8jruBRJuPv2eI8ilowYN30leC2/X1W1K9 1tyUXDwyeBbsB0bkFx0RxUBJHqTvExOMgJSbk= Received: by 10.114.178.13 with SMTP id a13mr6987690waf.182.1214479681118; Thu, 26 Jun 2008 04:28:01 -0700 (PDT) Received: by 10.114.195.4 with HTTP; Thu, 26 Jun 2008 04:28:01 -0700 (PDT) Message-ID: Date: Thu, 26 Jun 2008 13:28:01 +0200 From: "Lammert Westerhoff" To: olivier.beyler@orange-ftgroup.com Subject: Re: RE : Snippet with file Cc: doxia-users@maven.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2123_26588805.1214479681087" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2123_26588805.1214479681087 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline https://svn.apache.org/repos/asf/maven/doxia/doxia/tags/doxia-1.0-alpha-11/ 2008/6/26 : > Do you know where I can find the source code of this macro to help me > understand what's wrong ? > > Olivier Beyler > FT/RD/MAPS/AMS/SUME > Ing=E9nieur Architecte > t=E9l. 04 76 76 45 52 > olivier.beyler@orange-ftgroup.com > > > > -------- Message d'origine-------- > De: Lammert Westerhoff [mailto:westerhoff@gmail.com > ] > Date: mer. 6/25/2008 10:50 > =C0: doxia-users@maven.apache.org > Objet : Re: Snippet with file > > It is indeed normal that you don't see the contents of the file. The macr= o > is searching for a line in the file that contains the Strings "START", > "SNIPPET" and "sommaire" (your specified id). This is where the snippet > will > start. It also searching for a similar line but END instead of START. I'm > not 100% sure about the exact Strings. You can look into the source code = of > the snippet macro in order to see the code that searches for the start of > the snippet. > > 2008/6/25 : > > > Thanks again to every one > > I try and on command ligne it's work better > > With > > There is no exception but I've only a square like if I have a > > and not the content of the file is it normal ? > > > > > > -----Message d'origine----- > > De : Vincent Siveton [mailto:vincent.siveton@gmail.com > ] > > Envoy=E9 : mercredi 25 juin 2008 19:22 > > =C0 : doxia-users@maven.apache.org > > Objet : Re: Snippet with file > > > > 2008/6/25 : > > > It's absolutly not situated into NetBeans tree. > > > > > > I think inside the plugin the project dir is overloaded by the maven > > > directory. this is for this reason that it doesn't find the file. > > > Maven is embeded into Netbeans > > > > Did you try directly in the command line? > > > > Vincent > > > > > With > > > I obtain > > > Caused by: java.io.FileNotFoundException: C:\Program Files\NetBeans > > > 6.1\src\site\xdoc\MU_32_sommaire.fr.xml (Le chemin d'acc=E8s sp=E9cif= i=E9 est > > introuvable) Unfortunatly the file is located : > > > C:\projet\OdisSite\src\site\xdoc\MU_32_sommaire.fr.xml > > > > > > > > > > > > -----Message d'origine----- > > > De : Lukas Theussl [mailto:ltheussl@apache.org ] > Envoy=E9 : mercredi 25 > > > juin 2008 18:59 =C0 : doxia-users@maven.apache.org Objet : Re: Snippe= t > > > with file > > > > > > The exception in your first mail said > > > > > > java.io.FileNotFoundException: C:\Program Files\NetBeans > > > 6.1\MU_32_sommaire.fr.xml > > > > > > so check where the file is located inside your netbeans dir and adjus= t > > the relative path accordingly. > > > > > > HTH, > > > -Lukas > > > > > > > > > olivier.beyler@orange-ftgroup.com wrote: > > >> Thanks, but I try both without success :-( If I put the full path > > >> > >> value=3D"C:\projet\OdisSite\src\site\xdoc/MU_32_sommaire.fr.xml"/> > > >> It works > > >> OdisSite is the name of the project and where is located the pom.xml > > file. > > >> As we use several computer the full path can't be use at the end. > > >> (some are on linux, windows...) > > >> > > >> The main idea is to try to separate a big file MU_32.xml into severa= l > > file witch would be assembly by the macro. > > >> > > >> > > >> > > >> > > >> -----Message d'origine----- > > >> De : Lukas Theussl [mailto:ltheussl@apache.org = ] > Envoy=E9 : mercredi 25 > > >> juin 2008 18:32 =C0 : doxia-users@maven.apache.org Objet : Re: Snipp= et > > >> with file > > >> > > >> try > > >> > > >> > > >> > > >> or > > >> > > >> > >> value=3D"projet/src/site/xdoc/MU_32_sommaire.fr.xml"/> > > >> > > >> (not sure about your project structure, I don't know what the three > > >> dots > > >> mean...) > > >> > > >> HTH, > > >> -Lukas > > >> > > >> > > >> olivier.beyler@orange-ftgroup.com wrote: > > >> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> the MU_32_sommaire.fr.xml is locate into ...\projet\src\site\xdoc > > >>> > > >>>If I do that I obtain : > > >>>Caused by: java.io.FileNotFoundException: C:\Program Files\NetBeans > > 6.1\MU_32_sommaire.fr.xml (Le fichier sp=E9cifi=E9 est introuvable) > > >>> at java.io.FileInputStream.open(Native Method) > > >>> at java.io.FileInputStream.(FileInputStream.java:106) > > >>> at java.io.FileInputStream.(FileInputStream.java:66) > > >>> at > > > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.jav= a:70) > > >>> at > > > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnect= ion.java:161) > > >>> at java.net.URL.openStream(URL.java:1007) > > >>> at > > > org.apache.maven.doxia.macro.snippet.SnippetReader.readLines(SnippetReade= r.java:118) > > >>> at > > > org.apache.maven.doxia.macro.snippet.SnippetReader.readSnippet(SnippetRea= der.java:59) > > >>> at > > > org.apache.maven.doxia.macro.snippet.SnippetMacro.getSnippet(SnippetMacro= .java:150) > > >>> at > > > org.apache.maven.doxia.macro.snippet.SnippetMacro.execute(SnippetMacro.ja= va:110) > > >>> ... 26 more > > >>> > > >>>Have you got any idea ? I don't want to put the absolute path to the > > >>>file as every one into the team has different path > > >>> > > >>> > > >> > > >> > > >> > > > > > > > > > -- > Lammert Westerhoff > westerhoff@gmail.com > > > > --=20 Lammert Westerhoff westerhoff@gmail.com ------=_Part_2123_26588805.1214479681087--