« Return to Thread: Fwd: pb with jade native

Fwd: pb with jade native

by freddy33 :: Rate this Message:

Reply to Author | View in Thread



---------- Forwarded message ----------
From: Frederic Simon <freds@...>
Date: Mon, Mar 16, 2009 at 4:47 PM
Subject: Re: pb with jade native
To: Julien.Rouland@...


In the same line than sourceDirectory there is testDirectory (I think I'm not sure may be testSourceDirectory check the schema of POM) :)
For documentation I found that a good XML editor with XSD links helps.

Good luck,
Fred.

2009/3/16 <Julien.Rouland@...>

Hello,
With your advice i have been able to compile all my project with jade maven plugin. I have to thank you for that.

However i have two more question.
With my project i use unitary testing. In fat i use only C language so i use preferably Check or Cunit.
I see that i can use cppunit with jade to compile and execute unitary test.
SO i translate one of my test in cppunit test but jade do not see any test.
I work with some module (one pom per module) and a parent pom
I join my parent pom and the module pom where the cppunit test is

parent_dir
  -pom.xml
  -        - utils
  -        -      -/src/main/native
  -        -      -test/
                      -test.cc
                      -test.h

Do you what i have forgot, and explain why jade do not see my test?
Is it complicated to use check instead of cppunit (check test needs only libcheck install and check.h include)?

I understand if you have'nt time to answer

Thank you
Julien rouland



You need to add<build>
<sourceDirectory>src/main/native</sourceDirectory>

should do.
Bon courage avec Maven :)

On Fri, Mar 13, 2009 at 5:21 PM, <Julien.Rouland@...> wrote:

Thank you for your answer.
I have been able to download the plugin from the repository.

But when i execute mvn clean compile
i have this error and i don't understand why a request for java directory
is present (in a totally C project).
I only have for each module

<module>
  -    src
  -      -   main
  -      -     -   native
  -    target
  -    test

Julien Rouland

[INFO] [jade-native:initialize]
[INFO] [jade-native:compile]
[INFO] Creating folder
/home/tests/Dropbox/trunk/upnp-md-c/log/target/obj/liblog-1.0
[INFO] Creating folder
/home/tests/Dropbox/trunk/upnp-md-c/log/target/obj/liblog-1.0/debug
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] basedir /home/tests/Dropbox/trunk/upnp-md-c/log/src/main/java does
not exist
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: basedir
/home/tests/Dropbox/trunk/upnp-md-c/log/src/main/java does not exist
      at
org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:542)
      at
org.codehaus.mojo.natives.NativeSources.getFiles(NativeSources.java:167)
      at
org.codehaus.mojo.natives.NativeSources.getAllSourceFiles(NativeSources.java:213)
      at
org.jfrog.jade.plugins.natives.plugin.NativeCompileMojo.execute(NativeCompileMojo.java:225)
      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
      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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Quoting Frederic Simon <freds@...>:

 Hi, this is the latest version:

http://repo.jfrog.org:80/artifactory/plugins-releases-local/org/jfrog/jade/plugins/build/jade-native-plugin/1.4-alpha1/


  <groupId>org.jfrog.jade.plugins.build</groupId>

  <artifactId>jade-native-plugin</artifactId>

  <version>1.4-alpha1</version>

repository url:
http://repo.jfrog.org:80/artifactory/plugins-releases-local

Hope it helps, sorry for low (inexistent) documentation :(

On Fri, Mar 13, 2009 at 4:20 PM, <Julien.Rouland@...>
wrote:

 Hello,
I 'm trying to use maven2 to compile my C project.
I used maven-native-plugin but it seem that jade-native-plugin is more
interessent.

I try to use your plugin but i 'm not able to find the good repository.

i try with this in my pom parent
    <repository>
         <id>jfrog-plugins</id>
         <name>jfrog-plugins-dist</name>
         <url>http://www.jfrog.org/artifactory/plugins-releases</url>
         <snapshots>
             <enabled>false</enabled>
         </snapshots>
     </repository>
    <pluginRepository>
         <id>jfrog-plugins</id>
         <name>jfrog-plugins-dist</name>
         <url>http://www.jfrog.org/artifactory/plugins-releases</url>
         <snapshots>
             <enabled>false</enabled>
         </snapshots>
     </pluginRepository>

and for compiling these line
      <groupId>org.jfrog.jade.plugins</groupId>
      <artifactId>jade-native-plugin</artifactId>
      <version>1.2</version>
      <extensions>true</extensions>

Could you help me?
It is probably not hte best way to ask you directly but i have not found
some best place.
If you have some advice concerning the version to use (release snapshot)

I thank you





--
http://www.jfrog.org/
http://freddy33.blogspot.com/
http://nothingisinfinite.blogspot.com/






--
http://www.jfrog.org/
http://freddy33.blogspot.com/
http://nothingisinfinite.blogspot.com/






--



--
http://www.jfrog.org/
http://freddy33.blogspot.com/
http://nothingisinfinite.blogspot.com/

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jade-plugins-users mailing list
Jade-plugins-users@...
https://lists.sourceforge.net/lists/listinfo/jade-plugins-users

 « Return to Thread: Fwd: pb with jade native