Hum, interesting. I will check on Windows (I use a mac). It  is potentially
this issue : https://cwiki.apache.org/jira/browse/FELIX-1411.

I keep you posted.

Regards,

Clement

2009/8/8 levko <[email protected]>

>
> Hi Clement,
>
>
> clement escoffier wrote:
> >
> > The eclipse builder uses the 'manipulate' target. (Project Properties -
> > Builders - MyiPOJOBundle - targets). So, it manipulates classes generated
> > by
> > eclipse and updates the manifest everytime you change something in your
> > project. You don't need to call ant yourself, Eclipse does that for you.
> > ...
> >
> Unfortunately, it does not work for me. To make clean experiment, I
> installed fresh version of Eclipse JEE 3.5.0 in 2 different machines (Win
> XP
> and Win Vista). After installing Eclipse, I imported the MyiPOJOBundle
> project from MyiPOJOBundle-1.4.0.zip file. Then, I set the
> MyiPOJOBundle.target as the active target platform. However, when I force
> Eclipse to rebuild the project, the last builder (My iPOJO Bundle) fails
> with the following log:
> Buildfile: ...\MyiPOJOBundle\build.xml
>
> manipulate:
>       [ipojo] Input directory : ...\MyiPOJOBundle\bin
>       [ipojo] Metadata file : ...\MyiPOJOBundle\metadata.xml
>        [ipojo] Start manipulation
>       [ipojo] The component
> org/apache/felix/ipojo/sample/MyComponentImpl.class is declared but not in
> the bundle
>
> BUILD FAILED
> ...\MyiPOJOBundle\build.xml:54: The component
> org/apache/felix/ipojo/sample/MyComponentImpl.class is declared but not in
> the bundle
>
> Total time: 285 milliseconds
>
>
> clement escoffier wrote:
> >
> > So if you want to launch Ant manually, without the Eclipse compiled
> > classes,
> > launch 'ant compile package'. If you want to reuse compiled classes (from
> > Eclipse), check that classes are already compiled (in the Eclipse output
> > folder (bin by default)) and then launch 'ant package'. ...
> >
> I also tried to launch Ant manually from the command prompt by using the
> full set of targets (BTW, the build.xml file has error in the 'package'
> target - the misspelled ${bunde.name} should actually be
> ${bundle.name}.jar):
> > ant clean compile package manipulate
> Buildfile: build.xml
>
> clean:
>
> clean:
>
> compile:
>    [mkdir] Created dir: ...\MyiPOJOBundle-1.4.0\bin
>    [javac] Compiling 1 source file to ...\MyiPOJOBundle-1.4.0\bin
>
> package:
>      [jar] Building jar: ...\MyiPOJOBundle-1.4.0\MyiPOJOBundle.jar
>    [ipojo] Input bundle file : ...\MyiPOJOBundle-1.4.0\MyiPOJOBundle.jar
>     [ipojo] Metadata file : ...\MyiPOJOBundle-1.4.0\metadata.xml
>    [ipojo] Start manipulation
>     [ipojo] Bundle manipulation - SUCCESS
>    [ipojo] Output file : ...\MyiPOJOBundle-1.4.0\MyiPOJOBundle.jar
>
> manipulate:
>    [ipojo] Input directory : ...\MyiPOJOBundle-1.4.0\bin
>    [ipojo] Metadata file : ...\MyiPOJOBundle-1.4.0\metadata.xml
>    [ipojo] Start manipulation
>    [ipojo] The component
> org/apache/felix/ipojo/sample/MyComponentImpl.class is declared but not in
> the bundle
>
> BUILD FAILED
> ...\MyiPOJOBundle-1.4.0\build.xml:54: The component
> org/apache/felix/ipojo/sample/MyCompo
> nentImpl.class is declared but not in the bundle
>
> Total time: 1 second
>
> So, I could not run the 'manipulate' target in both Eclipse and command
> prompt.
>
> Thanks,
> -- Lev
> --
> View this message in context:
> http://www.nabble.com/Running-iPOJO-ant-task-in-Eclipse-tp24855448p24877461.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to