Commits

davsclaus  committed 080ca78

WW-1251 - added Eclipse .project file also - fixed wrong echo info

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2518573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits bc3dd07

Comments (0)

Files changed (2)

File webapps/blank/.project

+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>@WEBAPP_NAME@</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

File webapps/build.xml

         <copy file="blank/.classpath" tofile="${new.app.name}/.classpath"/>
         <replace file="${new.app.name}/.classpath" value="${basedir}/.." token="@WEBWORK_HOME@"/>
         <replace file="${new.app.name}/.classpath" value="${version}" token="@WEBWORK_VERSION@"/>
+        <copy file="blank/.project" tofile="${new.app.name}/.project"/>
+        <replace file="${new.app.name}/.project" value="${new.app.name}" token="@WEBAPP_NAME@"/>
 
         <echo level="info">
             +=============================================================+
             |    -- Your Web Application was created successfully! --     |
             |                                                             |
-            | Now you should be able to cd to your application and run:   |
+            | Now you should be able to build your application with:      |
             | > ant build -Dwebapp=${new.app.name}                        |
             +=============================================================+
-</echo>
+        </echo>
     </target>