Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] Build multiple features in one run of PDE

Hi Mark,

> If I have two features that I want to build.  Can I build then in one
> run of the PDE build?
>
> If so How do I do that?

yes you can, you have list them both in the "allElements.xml" file, 
modifying the allelementsDelegator target.
It would look like this, change the "value" entries:

  <target name="allElementsDelegator">
    <ant antfile="${genericTargets}" target="${target}">
      <property name="type" value="feature" />
      <property name="id" value="eu.geclipse" />
    </ant>
    <ant antfile="${genericTargets}" target="${target}">
      <property name="type" value="feature" />
      <property name="id" value="eu.geclipse.batch" />
    </ant>
...
  </target>

and then for each feature you have to repeat the assemble target blocks:

  <!-- All core targets -->
  <target name="assemble.eu.geclipse.group.group.group">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>
  <target name="assemble.eu.geclipse.linux.gtk.x86">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>
...
  <target name="assemble.eu.geclipse.win32.all.x86">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>

  <!-- All batch targets -->
  <target name="assemble.eu.geclipse.batch.group.group.group">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>
  <target name="assemble.eu.geclipse.batch.linux.gtk.x86">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>
...
  <target name="assemble.eu.geclipse.batch.win32.all.x86">
    <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
  </target>

Hope it helps, cheers, Ariel


Back to the top