|
Lines 12-17
Link Here
|
| 12 |
* -------- -------- ----------------------------------------------------------- |
12 |
* -------- -------- ----------------------------------------------------------- |
| 13 |
* 20060515 115225 sengpl@ca.ibm.com - Seng Phung-Lu |
13 |
* 20060515 115225 sengpl@ca.ibm.com - Seng Phung-Lu |
| 14 |
* 20070606 177421 sandakith@wso2.com - fix web.xml wiped out when Axis2 facet |
14 |
* 20070606 177421 sandakith@wso2.com - fix web.xml wiped out when Axis2 facet |
|
|
15 |
* 20091207 192005 samindaw@wso2.com - merge the web.xml to have axis2 welcome file defined |
| 15 |
*******************************************************************************/ |
16 |
*******************************************************************************/ |
| 16 |
package org.eclipse.jst.ws.axis2.facet.commands; |
17 |
package org.eclipse.jst.ws.axis2.facet.commands; |
| 17 |
|
18 |
|
|
Lines 37-42
Link Here
|
| 37 |
import org.eclipse.jst.javaee.core.JavaeeFactory; |
38 |
import org.eclipse.jst.javaee.core.JavaeeFactory; |
| 38 |
import org.eclipse.jst.javaee.core.UrlPatternType; |
39 |
import org.eclipse.jst.javaee.core.UrlPatternType; |
| 39 |
import org.eclipse.jst.javaee.web.WebFactory; |
40 |
import org.eclipse.jst.javaee.web.WebFactory; |
|
|
41 |
import org.eclipse.jst.javaee.web.WelcomeFileList; |
| 42 |
import org.eclipse.jst.ws.axis2.core.constant.Axis2Constants; |
| 40 |
import org.eclipse.wst.command.internal.env.core.common.StatusUtils; |
43 |
import org.eclipse.wst.command.internal.env.core.common.StatusUtils; |
| 41 |
import org.eclipse.wst.common.environment.IEnvironment; |
44 |
import org.eclipse.wst.common.environment.IEnvironment; |
| 42 |
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; |
45 |
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; |
|
Lines 214-219
Link Here
|
| 214 |
webapp.getServletMappings().add(servletMapping); |
217 |
webapp.getServletMappings().add(servletMapping); |
| 215 |
} |
218 |
} |
| 216 |
} |
219 |
} |
|
|
220 |
List welcomeFileLists = webapp.getWelcomeFileLists(); |
| 221 |
if (welcomeFileLists!=null){ |
| 222 |
for (Object list : welcomeFileLists) { |
| 223 |
if (list instanceof WelcomeFileList){ |
| 224 |
WelcomeFileList welcomeList=(WelcomeFileList) list; |
| 225 |
if (!welcomeList.getWelcomeFiles().contains(Axis2Constants.AXIS2_WELCOME_FILE)) |
| 226 |
welcomeList.getWelcomeFiles().add(Axis2Constants.AXIS2_WELCOME_FILE); |
| 227 |
} |
| 228 |
} |
| 229 |
} |
| 217 |
} |
230 |
} |
| 218 |
|
231 |
|
| 219 |
|
232 |
|