Hi Andreas

GOOD NEWS!!!
IT'S WORKING!
I've attached a simple patch to make it work under linux.
Thank you very much for all the great work.

Saludos.
Have a nice weekend.

--
Alejandro Scandroli
Amneris: We build process-driven web applications.
http://www.amneris.es



On Nov 23, 2007 12:17 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> i've found + fixed some more bugs (packages where hardcoded to com.*,
> not platform independent) - but i still can't get it to work on Linux
>
> ... but give it a try yourself - i've uploaded a newer snapshot
>
>
>
> On Nov 22, 2007 3:27 PM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> > the classpath collisions and the duplicated HM modules are expected :)
> >
> > i'll download amneris and try on it to see for myself!
> >
> >
> > Alejandro Scandroli wrote:
> > > Hi Andreas,
> > >
> > > Please, there is no need to apologize.
> > > I realized that I didn't have a log4j.properties file on my classpath
> > > and that's why I wasn't seeing any errors.
> > > Once I added it I started to see some errors.
> > > First classpath collisions and duplicated HiveMind modules, tapestry
> > > 4.1.2 vs tapestry 4.1.3.
> > > Then missing contributions, Trails has a rather complex HiveMind
> > > module and tapdoc complains about not been able to create the HiveMind
> > > registry.
> > > I tried tapdoc in another project: Amneris Tapiz4
> > > (http://amneris.googlecode.com/), and after resolving the classpath
> > > collisions I still get nothing, no tapdoc documentation, no error,
> > > nothing, just a little warning.
> > >
> > > 2007-11-22 10:37:47,891 [main] WARN
> > > tapestry.init.ApplicationSpecificationInitializer - Could not find an
> > > application specification for application servlet TapDoc Mock Servlet.
> > >
> > > The project is online, so if you want/can, you can take a look at it
> > >
> > >>> svn co http://amneris.googlecode.com/svn/trunk .
> > >>>
> > >
> > > The amneris-tapiz4 submodule is the one configured to use tapdoc.
> > >
> > > Just a reminder: It does work great with explicitly declared
> > > components and component specification files. I'm trying to use tapdoc
> > > without jwc files.
> > >
> > > Saludos.
> > > Alejandro.
> > >
> > > On Nov 21, 2007 7:03 PM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> > >
> > >> It must be in the classpath (ideally inside the package that's the
> > >> base for your components)
> > >>
> > >> Also, see 
> > >> http://tacos.sourceforge.net/tacos4.1/tapdoc/tapdoc-maven-plugin/tapdoc-mojo.html
> > >> there's a showErrors parameter for the plugin, set it to true might
> > >> help pinpoint the problem.
> > >>
> > >> And sorry for all the troubles :(
> > >>
> > >> On Nov 21, 2007 7:35 PM, Alejandro Scandroli
> > >>
> > >> <[EMAIL PROTECTED]> wrote:
> > >>
> > >>> Hi Andreas,
> > >>>
> > >>> I had no luck.
> > >>> I added the description and the meta, and nothing happened.
> > >>> To make sure it wasn't this project in particular, I used two
> > >>> different projects and I had the same result in both cases.
> > >>> I'm using Tapestry 4.1.3 and tapdoc version: 
> > >>> tapdoc-0.7.0-20071120.201242-1.jar
> > >>>
> > >>> Alejandro.
> > >>>
> > >>>
> > >>> On Nov 21, 2007 9:30 AM, andyhot <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>> Damn, we need docs :)
> > >>>> Add a description to the library (used for titles),
> > >>>> and define org.apache.tapestry.component-class-packages... it should
> > >>>> then work
> > >>>>
> > >>>> <library-specification>
> > >>>>     <!-- this file is only used for generating component docs -->
> > >>>>     <description>Amplafi Library</description>
> > >>>>     <meta key="org.apache.tapestry.component-class-packages"
> > >>>> value="com.amplafi.web.components"/>
> > >>>> </library-specification>
> > >>>>
> > >>>> BTW, javadocs before the @Parameter annotation work for me... try 
> > >>>> adding
> > >>>> the above, and
> > >>>> report back
> > >>>>
> > >>>>
> > >>>> Alejandro Scandroli wrote:
> > >>>>
> > >>>>> Hi Andreas,
> > >>>>>
> > >>>>> Wonderful work, thank you and thanks to Norbert.
> > >>>>> Questions:
> > >>>>> I couldn't make it work with a dummy (empty) library file and jwc-less
> > >>>>> components. When I say empty I mean this:
> > >>>>> <library-specification>
> > >>>>> </library-specification>
> > >>>>> Should I have to pass another configuration parameter besides the 
> > >>>>> library path?
> > >>>>>
> > >>>>> How can I add descriptions to the parameters declared in a java file
> > >>>>> using the @Parameter annotation, tapdoc doesn't seem to grab the
> > >>>>> javadoc comments?
> > >>>>>
> > >>>>> Alejandro.
> > >>>>>
> > >>>>>
> > >>>>> On Nov 20, 2007 9:26 PM, andyhot <[EMAIL PROTECTED]> wrote:
> > >>>>>
> > >>>>>
> > >>>>>> Finally worked on tapdoc, and ... it is exciting :)
> > >>>>>> It can now work with jwc-less components ( i / we don't use xml for a
> > >>>>>> long time now)
> > >>>>>> it still needs the path to a .library file (which can be dummy) and 
> > >>>>>> then
> > >>>>>> works its way
> > >>>>>> into subpackages looking for classes marked with the @ComponentClass
> > >>>>>> annotation or that are
> > >>>>>> abstract ;)
> > >>>>>>
> > >>>>>> http://tacos.sourceforge.net/nightly is the snapshot maven repo,
> > >>>>>> include it in your <reporting> with:
> > >>>>>>         <plugin>
> > >>>>>>             <groupId>net.sf.tacos</groupId>
> > >>>>>>             <artifactId>tapdoc-maven-plugin</artifactId>
> > >>>>>>             <version>0.7.0-SNAPSHOT</version>
> > >>>>>>             <configuration>
> > >>>>>>                 <libraries>
> > >>>>>>                     
> > >>>>>> <param>/com/amplafi/web/components/Main.library</param>
> > >>>>>>                 </libraries>
> > >>>>>>             </configuration>
> > >>>>>>         </plugin>
> > >>>>>>
> > >>>>>> Docs will appear at http://tacos.sourceforge.net/tacos4.1/tapdoc/
> > >>>>>>
> > >>>>>> Give it a try and report any issues asap...
> > >>>>>>
> > >>>>>>
> > >>>>>> andyhot wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>> yes, thx for reminding, we need that too!
> > >>>>>>>
> > >>>>>>> Kalle Korhonen wrote:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> Would a version of the tapdoc maven plugin be released as well? 
> > >>>>>>>> AFAIK,
> > >>>>>>>> it never got a release after it moved under Tacos; it deserves one.
> > >>>>>>>>
> > >>>>>>>> Kalle
> > >>>>>>>>
> > >>>>>>>> On 11/12/07, * andyhot* <[EMAIL PROTECTED] <mailto:[EMAIL 
> > >>>>>>>> PROTECTED]>>
> > >>>>>>>> wrote:
> > >>>>>>>>
> > >>>>>>>>     Hi all,
> > >>>>>>>>     I believe it's time for the next 4.1.1 release for several 
> > >>>>>>>> reasons:
> > >>>>>>>>     -) Several bugs relating to the dojo components have been fixed
> > >>>>>>>>     -) A few powerful annotations have been added.
> > >>>>>>>>     but mainly
> > >>>>>>>>     -) I'd like the next versions to require (the yet unreleased)
> > >>>>>>>>     Tapestry 4.1.4
> > >>>>>>>>     so that we can add direct (and dojo-less) support for several
> > >>>>>>>>     different
> > >>>>>>>>     js frameworks (in the
> > >>>>>>>>     form of several tacos subprojects). I'm not sure with which one
> > >>>>>>>>     i'll start,
> > >>>>>>>>     but you guys can take your pick, work in parallel and perhaps
> > >>>>>>>>     contribute
> > >>>>>>>>     back.
> > >>>>>>>>
> > >>>>>>>>     So, before the release, is there anything obvious that we're
> > >>>>>>>>     missing and/or
> > >>>>>>>>     need to add?
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>     --
> > >>>>>>>>     Andreas Andreou - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> > >>>>>>>> -
> > >>>>>>>>     http://blog.andyhot.gr
> > >>>>>>>>     Tapestry / Tacos developer
> > >>>>>>>>     Open Source / JEE Consulting
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>     
> > >>>>>>>> -------------------------------------------------------------------------
> > >>>>>>>>     This SF.net email is sponsored by: Splunk Inc.
> > >>>>>>>>     Still grepping through log files to find problems?  Stop.
> > >>>>>>>>     Now Search log events and configuration files using AJAX and a
> > >>>>>>>>     browser.
> > >>>>>>>>     Download your FREE copy of Splunk now >> http://get.splunk.com/
> > >>>>>>>>     <http://get.splunk.com/>
> > >>>>>>>>     _______________________________________________
> > >>>>>>>>     Tacos-devel mailing list
> > >>>>>>>>     Tacos-devel@lists.sourceforge.net
> > >>>>>>>>     <mailto:Tacos-devel@lists.sourceforge.net>
> > >>>>>>>>     https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> ------------------------------------------------------------------------
> > >>>>>>>>
> > >>>>>>>> -------------------------------------------------------------------------
> > >>>>>>>> This SF.net email is sponsored by: Splunk Inc.
> > >>>>>>>> Still grepping through log files to find problems?  Stop.
> > >>>>>>>> Now Search log events and configuration files using AJAX and a 
> > >>>>>>>> browser.
> > >>>>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
> > >>>>>>>> ------------------------------------------------------------------------
> > >>>>>>>>
> > >>>>>>>> _______________________________________________
> > >>>>>>>> Tacos-devel mailing list
> > >>>>>>>> Tacos-devel@lists.sourceforge.net
> > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>> --
> > >>>>>> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> > >>>>>> Tapestry / Tacos developer
> > >>>>>> Open Source / JEE Consulting
> > >>>>>>
> > >>>>>>
> > >>>>>> -------------------------------------------------------------------------
> > >>>>>> This SF.net email is sponsored by: Microsoft
> > >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >>>>>>
> > >>>>>> _______________________________________________
> > >>>>>> Tacos-devel mailing list
> > >>>>>> Tacos-devel@lists.sourceforge.net
> > >>>>>> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>> -------------------------------------------------------------------------
> > >>>>> This SF.net email is sponsored by: Microsoft
> > >>>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >>>>> _______________________________________________
> > >>>>> Tacos-devel mailing list
> > >>>>> Tacos-devel@lists.sourceforge.net
> > >>>>> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> --
> > >>>>
> > >>>> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> > >>>> Tapestry / Tacos developer
> > >>>> Open Source / JEE Consulting
> > >>>>
> > >>>>
> > >>>> -------------------------------------------------------------------------
> > >>>> This SF.net email is sponsored by: Microsoft
> > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >>>> _______________________________________________
> > >>>> Tacos-devel mailing list
> > >>>> Tacos-devel@lists.sourceforge.net
> > >>>> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>>
> > >>>>
> > >>> -------------------------------------------------------------------------
> > >>> This SF.net email is sponsored by: Microsoft
> > >>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >>> _______________________________________________
> > >>> Tacos-devel mailing list
> > >>> Tacos-devel@lists.sourceforge.net
> > >>> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>>
> > >>>
> > >>
> > >> --
> > >> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> > >> Tapestry / Tacos developer
> > >> Open Source / JEE Consulting
> > >>
> > >> -------------------------------------------------------------------------
> > >> This SF.net email is sponsored by: Microsoft
> > >> Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >> _______________________________________________
> > >> Tacos-devel mailing list
> > >> Tacos-devel@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >>
> > >>
> > >
> > > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Tacos-devel mailing list
> > > Tacos-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >
> > >
> >
> > --
> > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Tacos-devel mailing list
> > Tacos-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> >
>
>
>
> --
>
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Tacos-devel mailing list
> Tacos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
Index: tapdoc-maven-plugin/src/main/java/com/erinors/tapestry/tapdoc/maven/CommandlineJavadocExecutor.java
===================================================================
--- tapdoc-maven-plugin/src/main/java/com/erinors/tapestry/tapdoc/maven/CommandlineJavadocExecutor.java	(revision 671)
+++ tapdoc-maven-plugin/src/main/java/com/erinors/tapestry/tapdoc/maven/CommandlineJavadocExecutor.java	Fri Nov 23 19:27:01 GMT 2007
@@ -13,15 +13,15 @@
         for (CharSequence file : classpaths)
         {
             if (formattedClasspath.length() > 0)
-            {                
+            {
                 formattedClasspath.append(File.pathSeparatorChar);
             }
-            
+
             formattedClasspath.append('\"');
             formattedClasspath.append(file);
             formattedClasspath.append('\"');
         }
-        
+
         StringBuilder formattedSourcePath = new StringBuilder();
         for (CharSequence file : sourcepaths)
         {
@@ -29,12 +29,12 @@
             {
                 formattedSourcePath.append(File.pathSeparatorChar);
             }
-            
+
             formattedSourcePath.append('\"');
             formattedSourcePath.append(file);
             formattedSourcePath.append('\"');
         }
-        
+
         StringBuilder command = new StringBuilder();
         command.append("java ");
         command.append("-cp ");
@@ -51,11 +51,23 @@
         command.append("\" -subpackages ");
         command.append(packages);
 
+
+        String osName = System.getProperty("os.name");
+        String[] commands = null;
+
+        if (osName.startsWith("Windows"))
+        {
+            commands = new String[]{"cmd.exe", "/c", command.toString()};
+        } else
+        {
+            commands = new String[]{"sh", "-c", command.toString()};
+        }
+
         System.out.println(command);
-        
+
         try
         {
-            Runtime.getRuntime().exec(command.toString());
+            Runtime.getRuntime().exec(commands);
         }
         catch (IOException e)
         {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to