title: How to insert a file in a specific target file
body: <p>I've an osgi server, developed under eclipse, that runs on windows, macosx and linux. 
  Tycho and maven are doing the target building configuration for theses platforms perfectly.</p>
  
  <p>Now, I need to insert a startup.sh or startup.bat in the final .zip file according to the final os + ws and arch plateform.
  Is there something like a "<strong>configuration.environments.environment.os</strong>" and so on maven variables I could use to copy my <strong>scripts</strong> folder next to the product target folder like this:</p>
  
  <pre><code>delivery_folder/
  -&gt;x86_64/
  -&gt;scripts/
  </code></pre>
  
  <p>Here's an extract of the product pom file:</p>
  
  <pre><code>&lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.0.2&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;copy-resources&lt;/id&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;copy-resources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;outputDirectory&gt;${project.build.directory}/products/${project.artifactId}/${configuration.environments.environment.os}&lt;/outputDirectory&gt;
                &lt;resources&gt;          
                  &lt;resource&gt;
                    &lt;directory&gt;scripts&lt;/directory&gt;
                    &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;/resource&gt;
                &lt;/resources&gt;              
              &lt;/configuration&gt;            
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
  </code></pre>
  
  <p>I'd like to use Tycho target-environnement mechanism.</p>
  
  <p>I've setup Tycho with:</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
  &lt;artifactId&gt;target-platform-configuration&lt;/artifactId&gt;
  &lt;version&gt;${tycho.version}&lt;/version&gt;
   &lt;configuration&gt;
   &lt;environments&gt;
      &lt;environment&gt;
      &lt;os&gt;linux&lt;/os&gt;
      &lt;ws&gt;gtk&lt;/ws&gt;
      &lt;arch&gt;x86_64&lt;/arch&gt;
   &lt;/environment&gt;
   &lt;environment&gt;
      &lt;os&gt;win32&lt;/os&gt;
      &lt;ws&gt;win32&lt;/ws&gt;
      &lt;arch&gt;x86&lt;/arch&gt;
   &lt;/environment&gt;
   &lt;environment&gt;
      &lt;os&gt;win32&lt;/os&gt;
      &lt;ws&gt;win32&lt;/ws&gt;
      &lt;arch&gt;x86_64&lt;/arch&gt;
   &lt;/environment&gt;
   &lt;environment&gt;
      &lt;os&gt;macosx&lt;/os&gt;
      &lt;ws&gt;cocoa&lt;/ws&gt;
      &lt;arch&gt;x86_64&lt;/arch&gt;
      &lt;/environment&gt;
   &lt;/environments&gt;
  &lt;/configuration&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>Thank you for your help</p>