Debian Codegraph @

plugins/org.eclipse.emf.codegen.ecore/templates/editor/build.propertiesjet

raw
1 <%@ jet package="org.eclipse.emf.codegen.ecore.templates.editor" imports="org.eclipse.emf.codegen.ecore.genmodel.* java.util.*" class="BuildProperties"%>
2 <%
3 /**
4 * Copyright (c) 2002-2008 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.getEditorPluginID()+".jar" : ".";%>
16 <%List<String> sourceFolders = genModel.getEditorSourceFolders();%>
17 <%@ include file="../Header.propertiesjetinc"%>
18
19 bin.includes = <%=pluginClassesLocation%>,\
20 icons/,\
21 <%if (genModel.isBundleManifest()) {%>
22 META-INF/,\
23 <%}%>
24 <%if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {%>
25 plugin.xml,\
26 <%}%>
27 <%String editorBundleLocalization = genModel.getEditorBundleLocalization(); int index = editorBundleLocalization.indexOf("/"); if (index == -1) {%>
28 <%=editorBundleLocalization%>.properties
29 <%} else {%>
30 <%=editorBundleLocalization.substring(0, index + 1)%>
31 <%}%>
32 jars.compile.order = <%=pluginClassesLocation%>
33 <% boolean first=true; for (Iterator<String> i = sourceFolders.iterator(); i.hasNext();) { String sourceFolder = i.next(); if (i.hasNext()){sourceFolder +=",\\";} if (first) {%>
34 source.<%=pluginClassesLocation%> = <%=sourceFolder%><%first=false;} else {%><%=sourceFolder%><%}}%>
35 output.<%=pluginClassesLocation%> = <%if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {%>bin<%} else {%>war/WEB-INF/classes<%}%>