Thanks for the fast clarification!
In case someone is interested in my solution:
Since I am already using Maven to build the project I solved the
problem this way:
I moved the AndroidManifest.xml to a folder called:
${project.basedir}/filtered and replaced the minSdkVersion value in
the AndroidManifest.xml with a property reference (I already had this
in the pom.xml): ${project.property.minSdkVersion}:
<uses-sdk android:minSdkVersion="${project.property.minSdkVersion}"
android:targetSdkVersion="15"/>
and removed it from the filtered/config.xml. Then I added the
following resource-filtering directive to the pom.xml:
<project ...>
...
<properties>
<project.property.minSdkVersion>8</project.property.minSdkVersion>
</properties>
...
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>${project.basedir}/filtered</directory>
<targetPath>${project.basedir}/</targetPath>
<includes>
<include>AndroidManifest.xml</include>
</includes>
</resource>
</resources>
...
</build>
...
</project>
This way the filtered AndroidManifest.xml is at the place where
Eclipse expects it and has the property reference replaced after
calling mvn process-resources. In the other profiles I have different
values for ${project.property.minSdkVersion}
Regards,
Dirk
PS: This question and answer is also on stack overflow:
http://stackoverflow.com/questions/12784610
With another solution by Mark Murphy.