Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xtext-dev] Build XText with ant

Hi Jeff,

Thanks for reply. You are correct.  I have JAVA_HOME set to java8 but not sure where it is picking up the pre-1.5 mode. I just used buckminister wizard to generate build.ant file. Here is my build.ant looks like.

<?xml version="1.0" encoding="UTF-8"?>
<project name="Buckminster Headless" default="buckminster">
        <property name="WORKSPACE" location="${ant.file}/../../" />
        <property name="build.root" location="${WORKSPACE}/buildroot" />
        <property name="buckminster.home" location="/home/vagrant/buckminster" />
        <property name="projects.location" location="${WORKSPACE}" />
        <property name="commands.file" location="${projects.location}/com.test.ovn.rules.buckminster/commands.txt" />
        <property name="target.platform" value="target.platform" />


        <target name="buckminster" depends="cleanup" description="description">
                <echo message="IMPORTANT: Populating an empty target platform may took over 10 minutes."/>
                <condition property="executable.file" value="buckminster.bat" else="buckminster">
                        <os family="windows"/>
                </condition>
                <java fork="true" dir="${buckminster.home}" logError="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
         <classpath>
                                <fileset dir="${buckminster.home}/plugins">
                                        <include name="org.eclipse.equinox.launcher_*.jar" />
                                </fileset>
                        </classpath>
                        <arg line='-update' />
                        <arg line='-data "${build.root}/buckminster.workspace"' />
                        <arg line='-configuration "${build.root}/configuration"' />
                        <arg line='--script "${commands.file}"' />
                        <sysproperty key="projects.location" value="${projects.location}" />
                        <sysproperty key="buckminster.output.root" value="${build.root}/buckminster.output" />
                        <sysproperty key="buckminster.temp.root" value="${build.root}/buckminster.temp" />
                        <sysproperty key="target.platform" value="${build.root}/${target.platform}" />
                        <jvmarg line=" -Xms256m -Xmx512m" />
                </java>
                <echo message=" "/>
                <echo message="Updatesite output in: ${build.root}/buckminster.output/com.visa.ovn.rules.site_*-eclipse.feature/site.p2/"/>
        </target>

        <target name="cleanup">
                <delete failonerror="false" includeemptydirs="true">
                        <fileset dir="${build.root}" defaultexcludes="false">
                                <exclude name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
                                <exclude name="**/${target.platform}/" />
                        </fileset>
                </delete>
        </target>
 <target name="reset.target-platform">
                <delete includeemptydirs="true">
                        <fileset dir="${build.root}" defaultexcludes="false">
                                <include name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
                                <include name="**/${target.platform}/" />
                        </fileset>
                </delete>
        </target>
</project>




On Wed, Jun 3, 2015 at 3:58 PM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
The ant build file is probably set to compile in pre-1.5 mode so generics are rejected.

Jeff

On Wed, Jun 3, 2015 at 5:18 PM, sivanarayana ganesh <venganesh@xxxxxxxxx> wrote:
Hi,

I have been struggling to build my XText project with buckminister generated build file(build.ant). This is what I have done.
   Env :  Eclipse Luna, Java 1.8

   --> Create new Xtext project, and created some grammar
  ---> Ran mwe workflows and xtext artifacts
   --> Create buckminister project
   ---> ant -f build.ant

Errors:

[java] Error: file /home/vagrant/workspace/com.visa.ovn.rules.ui/src-gen/com/visa/ovn/ui/contentassist/antlr/PartialRulesContentAssistParser.java, line 33: Syntax error, parameterized types are only available if source level is 1.5 or greater
 [java] Warning: file /home/vagrant/workspace/com.visa.ovn.rules.ui/META-INF/MANIFEST.MF, line 20: 'JavaSE-1.8' is not a valid Execution Environment

Sorry if it is a basic question. Appreciate any help.

Thanks.

-Siva.




_______________________________________________
xtext-dev mailing list
xtext-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/xtext-dev



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
xtext-dev mailing list
xtext-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/xtext-dev


Back to the top