Debian Codegraph @

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

raw
1 <%@ jet package="org.eclipse.emf.codegen.ecore.templates.model" 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.getModelPluginID()+".jar" : ".";%>
16 <%List<String> sourceFolders = genModel.getModelSourceFolders();%>
17 <%@ include file="../Header.propertiesjetinc"%>
18
19 bin.includes = <%=pluginClassesLocation%>,\
20 model/,\
21 <%if (genModel.sameModelEditProject() || genModel.sameModelEditorProject()) {%>
22 icons/,\
23 <%}%>
24 <%if (genModel.isBundleManifest()) {%>
25 META-INF/,\
26 <%}%>
27 <%if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {%>
28 plugin.xml,\
29 <%}%>
30 <%String modelBundleLocalization = genModel.getModelBundleLocalization(); int index = modelBundleLocalization.indexOf("/"); if (index == -1) {%>
31 <%=modelBundleLocalization%>.properties
32 <%} else {%>
33 <%=modelBundleLocalization.substring(0, index + 1)%>
34 <%}%>
35 jars.compile.order = <%=pluginClassesLocation%>
36 <% boolean first=true; for (Iterator<String> i = sourceFolders.iterator(); i.hasNext();) { String sourceFolder = i.next(); if (i.hasNext()){sourceFolder +=",\\";} if (first) {%>
37 source.<%=pluginClassesLocation%> = <%=sourceFolder%><%first=false;} else {%><%=sourceFolder%><%}}%>
38 output.<%=pluginClassesLocation%> = bin/