Bug 393144 - E4 Application wizard does not include all artifacts in
build.properties
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
index ed3268f..679706b 100644
--- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
+++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
@@ -101,12 +101,14 @@
  */
 public class E4NewProjectWizard extends NewPluginProjectWizard {
 
+	private static final String PLUGIN_XML = "plugin.xml";
 	private static final String MODEL_EDITOR_ID = "org.eclipse.e4.tools.emf.editor3x.e4wbm";
 	private static final String APPLICATION_MODEL = "Application.e4xmi";
 	private PluginFieldData fPluginData;
 	private NewApplicationWizardPage fApplicationPage;
 	private IProjectProvider fProjectProvider;
 	private PluginContentPage fContentPage;
+	private boolean isMinimalist;
 
 	public E4NewProjectWizard() {
 		fPluginData = new PluginFieldData();
@@ -257,8 +259,16 @@
 			WorkspaceBuildModel model = new WorkspaceBuildModel(file);
 			IBuildEntry e = model.getBuild().getEntry(IBuildEntry.BIN_INCLUDES);
 			
-			e.addToken("plugin.xml");
-			
+			e.addToken(PLUGIN_XML);
+			e.addToken(APPLICATION_MODEL);
+
+			// Event though an icons directory is always created
+			// it seems appropriate to only add it if it contains
+			// some content
+			if (!isMinimalist) {
+				e.addToken("icons/");
+			}
+
 			Map<String, String> map = fApplicationPage.getData();
 			String cssEntry = map.get(NewApplicationWizardPage.APPLICATION_CSS_PROPERTY);
 			if( cssEntry != null ) {
@@ -358,7 +368,7 @@
 	public void createApplicationResources(IProject project,
 			IProgressMonitor monitor) {
 		Map<String, String> map = fApplicationPage.getData();
-		boolean isMinimalist = !map.get(NewApplicationWizardPage.richSample).equalsIgnoreCase("TRUE");
+		isMinimalist = !map.get(NewApplicationWizardPage.richSample).equalsIgnoreCase("TRUE");
 		if (map == null
 				|| map.get(NewApplicationWizardPage.PRODUCT_NAME) == null)
 			return;