I 've try without success :-( Caused by: java.io.FileNotFoundException: C:\Program Files\NetBeans 6.1\${basedir}\src\site\xdoc\MU_32_sommaire.fr.xml (Le chemin d'accès spécifié est introuvable) at java.io.FileInputStream.open(Native Method)
-----Message d'origine----- De : Dennis Lundberg [mailto:[EMAIL PROTECTED] Envoyé : mercredi 25 juin 2008 19:04 À : doxia-users@maven.apache.org Objet : Re: Snippet with file Did you try value="${basedir}/src/site/xdoc/MU_32_sommaire.fr.xml" [EMAIL PROTECTED] wrote: > Thanks, but I try both without success :-( If I put the full path > <param name="file" > value="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 several file > witch would be assembly by the macro. > > > > > -----Message d'origine----- > De : Lukas Theussl [mailto:[EMAIL PROTECTED] Envoyé : mercredi 25 > juin 2008 18:32 À : doxia-users@maven.apache.org Objet : Re: Snippet > with file > > try > > <param name="file" value="src/site/xdoc/MU_32_sommaire.fr.xml"/> > > or > > <param name="file" > value="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 > > > [EMAIL PROTECTED] wrote: >> <macro name="snippet"> >> <param name="id" value="sommaire"/> >> <param name="file" value="MU_32_sommaire.fr.xml"/> >> </macro> >> >> >> 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écifié est introuvable) >> at java.io.FileInputStream.open(Native Method) >> at java.io.FileInputStream.<init>(FileInputStream.java:106) >> at java.io.FileInputStream.<init>(FileInputStream.java:66) >> at >> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) >> at >> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) >> at java.net.URL.openStream(URL.java:1007) >> at >> org.apache.maven.doxia.macro.snippet.SnippetReader.readLines(SnippetReader.java:118) >> at >> org.apache.maven.doxia.macro.snippet.SnippetReader.readSnippet(SnippetReader.java:59) >> at >> org.apache.maven.doxia.macro.snippet.SnippetMacro.getSnippet(SnippetMacro.java:150) >> at >> org.apache.maven.doxia.macro.snippet.SnippetMacro.execute(SnippetMacro.java: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 -- Dennis Lundberg