| 1 |
<%@ jet package="org.eclipse.emf.codegen.ecore.templates.edit" imports="org.eclipse.emf.codegen.ecore.genmodel.* java.util.*" class="BuildProperties"%> |
| 2 |
<% |
| 3 |
/** |
| 4 |
* Copyright (c) 2002-2010 IBM Corporation and others. |
| 5 |
* All rights reserved. This program and the accompanying materials |
| 6 |
* are made available under the terms of the Eclipse Public License v2.0 |
| 7 |
* which accompanies this distribution, and is available at |
| 8 |
* http://www.eclipse.org/legal/epl-v20.html |
| 9 |
* |
| 10 |
* Contributors: |
| 11 |
* IBM - Initial API and implementation |
| 12 |
*/ |
| 13 |
%> |
| 14 |
<%GenModel genModel = (GenModel)argument;%> |
| 15 |
<%String pluginClassesLocation = genModel.isRuntimeJar() ? genModel.getEditPluginID()+".jar" : ".";%> |
| 16 |
<%List<String> sourceFolders = genModel.getEditSourceFolders();%> |
| 17 |
<%@ include file="../Header.propertiesjetinc"%> |
| 18 |
|
| 19 |
bin.includes = <%=pluginClassesLocation%>,\ |
| 20 |
<%if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {%> |
| 21 |
icons/,\ |
| 22 |
<%}%> |
| 23 |
<%if (genModel.isBundleManifest()) {%> |
| 24 |
META-INF/,\ |
| 25 |
<%}%> |
| 26 |
<%if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {%> |
| 27 |
plugin.xml,\ |
| 28 |
<%}%> |
| 29 |
<%String editBundleLocalization = genModel.getEditBundleLocalization(); int index = editBundleLocalization.indexOf("/"); if (index == -1) {%> |
| 30 |
<%=editBundleLocalization%>.properties |
| 31 |
<%} else {%> |
| 32 |
<%=editBundleLocalization.substring(0, index + 1)%> |
| 33 |
<%}%> |
| 34 |
jars.compile.order = <%=pluginClassesLocation%> |
| 35 |
<% boolean first=true; for (Iterator<String> i = sourceFolders.iterator(); i.hasNext();) { String sourceFolder = i.next(); if (i.hasNext()){sourceFolder +=",\\";} if (first) {%> |
| 36 |
source.<%=pluginClassesLocation%> = <%=sourceFolder%><%first=false;} else {%><%=sourceFolder%><%}}%> |
| 37 |
output.<%=pluginClassesLocation%> = bin/ |