Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-user Digest, Vol 19, Issue 1

Hi Eric,

Thanks so much, worked right away. Much appreciated.

- Ed

On Thu, Mar 1, 2012 at 12:00 PM,  <tycho-user-request@xxxxxxxxxxx> wrote:
> Send tycho-user mailing list submissions to
>        tycho-user@xxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://dev.eclipse.org/mailman/listinfo/tycho-user
> or, via email, send a message with subject or body 'help' to
>        tycho-user-request@xxxxxxxxxxx
>
> You can reach the person managing the list at
>        tycho-user-owner@xxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tycho-user digest..."
>
>
> Today's Topics:
>
>   1. Compile the source to my plugin before building it
>      (Edward Schwarz)
>   2. Re: Compile the source to my plugin before building it (Eric Gwin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 29 Feb 2012 19:51:45 -0500
> From: Edward Schwarz <ed.schwarz@xxxxxxxxxxxxxxxx>
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] Compile the source to my plugin before building
>        it
> Message-ID:
>        <CABqreiYMDZxpQuAGNG7L3fiB8XkOZOzk_aV8jntZD4aekWJWQg@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
>
> I have a plugin project which has source code (java code, which needs
> to be compiled) as well as the usual packaging of elements into a
> plugin.
>
> I cannot get the source code to compile. I have tried everything I can
> think of. The plugin is created just fine, but it does not have the
> compiled classes in there, neither as .class files nor as a .jar file.
>
> I am trying to build after exporting the eclipse project from svn -
> i.e., without having eclipse running or ever having treated the
> exported directory as part of a workspace.
>
> My source code is in the "src" directory immediatly under the
> project's ${basedir}.
>
> I can see the tycho-compiler-plugin being invoked and configured, but
> nothing is happening.
>
> Using Tycho 0.14.0
>
> Any ideas?
>
> - Ed
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project
>        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";
>        xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>        <modelVersion>4.0.0</modelVersion>
>        <parent>
>                <groupId>com.gorillalogic.fonemonkey</groupId>
>                <artifactId>com.gorillalogic.fonemonkey.parent</artifactId>
>                <version>1.0.0-SNAPSHOT</version>
>        </parent>
>        <artifactId>com.gorillalogic.monkeytalk.ide</artifactId>
>        <version>1.7.0.ea</version>
>        <packaging>eclipse-plugin</packaging>
>        <build>
>                <sourceDirectory>src</sourceDirectory>
>                <plugins>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-dependency-plugin</artifactId>
>                                <version>2.4</version>
>                                <configuration>
>                                        <outputDirectory>${basedir}/libs</outputDirectory>
>                                        <overWriteReleases>true</overWriteReleases>
>                                        <overWriteSnapshots>true</overWriteSnapshots>
>                                        <overWriteIfNewer>true</overWriteIfNewer>
>                                        <stripVersion>true</stripVersion>
>                                </configuration>
>                                <executions>
>                                        <execution>
>                                                <id>copy-dependencies</id>
>                                                <phase>validate</phase>
>                                                <goals>
>                                                        <goal>copy-dependencies</goal>
>                                                </goals>
>                                        </execution>
>                                </executions>
>                        </plugin>
>                </plugins>
>        </build>
> </project>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 01 Mar 2012 10:36:30 -0500
> From: Eric Gwin <eric.gwin@xxxxxxxxxx>
> To: tycho-user@xxxxxxxxxxx
> Subject: Re: [tycho-user] Compile the source to my plugin before
>        building it
> Message-ID: <4F4F977E.9040407@xxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Ed,
>
> I've discovered that Tycho uses the build.properties file (generated when creating a project in eclipse) as well as the pom to identify source locations. From experience, if tycho/maven cannot find source it will simply skip the compilation step. Below are the contents of the build.properties file I use for a component that sounds like it is similarly structured:
>
> bin.includes = .,\
>                META-INF/
> source.. = src/,\
>            resource/
> src.excludes = */.svn/*
>
> -Eric
>
>
>
> On 29/02/2012 7:51 PM, Edward Schwarz wrote:
>> Hi all,
>>
>> I have a plugin project which has source code (java code, which needs
>> to be compiled) as well as the usual packaging of elements into a
>> plugin.
>>
>> I cannot get the source code to compile. I have tried everything I can
>> think of. The plugin is created just fine, but it does not have the
>> compiled classes in there, neither as .class files nor as a .jar file.
>>
>> I am trying to build after exporting the eclipse project from svn -
>> i.e., without having eclipse running or ever having treated the
>> exported directory as part of a workspace.
>>
>> My source code is in the "src" directory immediatly under the
>> project's ${basedir}.
>>
>> I can see the tycho-compiler-plugin being invoked and configured, but
>> nothing is happening.
>>
>> Using Tycho 0.14.0
>>
>> Any ideas?
>>
>> - Ed
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project
>>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd";
>>       xmlns="http://maven.apache.org/POM/4.0.0";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>>       <modelVersion>4.0.0</modelVersion>
>>       <parent>
>>               <groupId>com.gorillalogic.fonemonkey</groupId>
>>               <artifactId>com.gorillalogic.fonemonkey.parent</artifactId>
>>               <version>1.0.0-SNAPSHOT</version>
>>       </parent>
>>       <artifactId>com.gorillalogic.monkeytalk.ide</artifactId>
>>       <version>1.7.0.ea</version>
>>       <packaging>eclipse-plugin</packaging>
>>       <build>
>>                  <sourceDirectory>src</sourceDirectory>
>>               <plugins>
>>                       <plugin>
>>                               <groupId>org.apache.maven.plugins</groupId>
>>                               <artifactId>maven-dependency-plugin</artifactId>
>>                               <version>2.4</version>
>>                               <configuration>
>>                                       <outputDirectory>${basedir}/libs</outputDirectory>
>>                                       <overWriteReleases>true</overWriteReleases>
>>                                       <overWriteSnapshots>true</overWriteSnapshots>
>>                                       <overWriteIfNewer>true</overWriteIfNewer>
>>                                       <stripVersion>true</stripVersion>
>>                               </configuration>
>>                               <executions>
>>                                       <execution>
>>                                               <id>copy-dependencies</id>
>>                                               <phase>validate</phase>
>>                                               <goals>
>>                                                       <goal>copy-dependencies</goal>
>>                                               </goals>
>>                                       </execution>
>>                               </executions>
>>                       </plugin>
>>               </plugins>
>>       </build>
>> </project>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>
>
> ------------------------------
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
> End of tycho-user Digest, Vol 19, Issue 1
> *****************************************


Back to the top