incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jnee...@apache.org
Subject svn commit: r612031 [6/6] - in /incubator/imperius/trunk: ./ imperius-javasplextension/ imperius-javasplextension/META-INF/ imperius-javasplextension/src/ imperius-javasplextension/src/org/ imperius-javasplextension/src/org/apache/ imperius-javasplexte...
Date Tue, 15 Jan 2008 06:53:02 GMT
Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/MethodParameter.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/MethodParameter.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/MethodParameter.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/MethodParameter.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+
+public class MethodParameter {
+
+	private String paramName;
+	
+	private String paramType;
+	
+	private boolean isArray;
+	
+	private String referenceClassName;
+	
+	public MethodParameter() {
+		
+	}
+
+	/**
+	 * @return the paramName
+	 */
+	public String getParamName() {
+		return paramName;
+	}
+
+	/**
+	 * @param paramName the paramName to set
+	 */
+	public void setParamName(String paramName) {
+		this.paramName = paramName;
+	}
+
+	/**
+	 * @return the paramType
+	 */
+	public String getParamType() {
+		return paramType;
+	}
+
+	/**
+	 * @param paramType the paramType to set
+	 */
+	public void setParamType(String paramType) {
+		this.paramType = paramType;
+	}
+
+	/**
+	 * @return the isArray
+	 */
+	public boolean isArray() {
+		return isArray;
+	}
+
+	/**
+	 * @param isArray the isArray to set
+	 */
+	public void setArray(boolean isArray) {
+		this.isArray = isArray;
+	}
+
+	/**
+	 * @return the referenceClassName
+	 */
+	public String getReferenceClassName() {
+		return referenceClassName;
+	}
+
+	/**
+	 * @param referenceClassName the referenceClassName to set
+	 */
+	public void setReferenceClassName(String referenceClassName) {
+		this.referenceClassName = referenceClassName;
+	}
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/MethodParameter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyCacheUtil.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyCacheUtil.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyCacheUtil.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyCacheUtil.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,325 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+import java.io.ByteArrayInputStream;
+import java.io.DataInputStream;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.apache.imperius.spl.editor.tool.PluginActivator;
+import org.apache.imperius.spl.editor.tool.internal.messages.PolicyMessages;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+
+
+public class PolicyCacheUtil {
+
+	private static PolicyCacheUtil cacheUtil = null;
+	
+	public static Map projectCacheMapObj = new HashMap();
+	
+	private PolicyCacheUtil() {
+	}
+
+	/**
+	 * 
+	 * @return
+	 */
+	public static PolicyCacheUtil getCacheUtilInstance() {
+		if(cacheUtil == null) {
+			cacheUtil = new PolicyCacheUtil();
+		}
+		return cacheUtil;
+	}	
+
+	/**
+	 * 
+	 * @param aProject
+	 */
+	public void initializeProjectCacheMap(IProject aProject) {
+		try {
+			String projectName = aProject.getName();
+			// read project specific language
+			if(PluginActivator.getDefault().getProjectType(projectName) == null) {
+				readLanguageFromCache(aProject);
+			}
+			if(!projectCacheMapObj.containsKey(projectName)) {
+				// get Cache Details
+				readDataFromCache(aProject);
+			}
+			
+			if(PluginActivator.getDefault().getCustomExprMap(projectName) == null) {
+				readCustomExprFromFile(aProject);
+			}
+			
+		} catch(Exception e) {
+			e.printStackTrace();
+		}
+	}
+
+	/**
+	 * 
+	 * @param aProject
+	 * @return
+	 */
+	private IFile getProjectsCacheFile(IProject aProject) {
+		IFile file = null;
+		try {
+			String cacheFileName = PluginActivator.getDefault().getResourceBundle().getString("CIMSPL_CACHE_FILE_NAME");
+			file = EclipseFileUtil.getCacheFile(aProject.getFullPath()+"/"+cacheFileName);
+		} catch (CoreException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		return file;
+	}
+
+	/**
+	 * 
+	 * @param aProject
+	 * @return
+	 */
+	private IFile getProjectsLanguageCacheFile(IProject aProject) {
+		IFile file = null;
+		try {
+			String projectOptionsFile = PluginActivator.getDefault().getResourceBundle().getString("SPL_OPTIONS_FILE_NAME");
+			file = EclipseFileUtil.getCacheFile(aProject.getFullPath()+"/"+projectOptionsFile);
+		} catch (CoreException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		return file;
+	}
+	
+	/**
+	 * 
+	 * @param aProject
+	 */
+	private void readDataFromCache(IProject aProject) {
+		try {
+			IFile file = getProjectsCacheFile(aProject);
+			if(file != null) {
+				DataInputStream dataIn = new DataInputStream(file.getContents());
+				Map classCacheMap = new HashMap();
+				Map classDataMap = new HashMap();
+				String line = null;
+				String className = "";
+				
+				while((line = dataIn.readLine()) != null) {
+					className = line.substring(0, line.indexOf(":-"));
+					classCacheMap.put(className, line);
+				}
+				
+				if(dataIn != null) {
+					dataIn.close();
+				}
+			
+				if(classCacheMap != null && classCacheMap.size() > 0) {
+					Iterator iter = classCacheMap.keySet().iterator();
+					while(iter.hasNext()) {
+						String classname = (String) iter.next();
+						classDataMap.put(classname, getClassDetails(className,(String)classCacheMap.get(classname)));
+					}
+				}
+				// put in the final Map
+				projectCacheMapObj.put(aProject.getName(), classDataMap);
+			}
+		} catch(CoreException ce) {
+			ce.printStackTrace();
+		} catch(Exception ce) {
+			ce.printStackTrace();
+		}
+	}
+
+	/**
+	 * 
+	 * @param aProject
+	 */
+	private void readLanguageFromCache(IProject aProject) {
+		try {
+			IFile file = getProjectsLanguageCacheFile(aProject);
+			if(file != null) {
+				DataInputStream dataIn = new DataInputStream(file.getContents());
+				String line = null;
+				while((line = dataIn.readLine()) != null) {
+					if(line.indexOf("SPL_LANGUAGE") != -1) {
+						PluginActivator.getDefault().setProjectType(aProject.getName(), line.substring(line.indexOf(":=")+2));
+						break;
+					}
+				}
+			}
+		} catch(CoreException ce) {
+			ce.printStackTrace();
+		} catch(Exception ce) {
+			ce.printStackTrace();
+		}
+	}
+
+	public void writeDataToCache(IProject aProject, String strClassInfo) {
+		try {
+			IFile file = getProjectsCacheFile(aProject);
+			if(file != null) {
+				ByteArrayInputStream baInputStream = null; 
+				baInputStream = new ByteArrayInputStream((strClassInfo+"\n").getBytes());
+				file.appendContents(baInputStream, 1,null);
+			}
+		} catch (CoreException e) {
+			e.printStackTrace();
+		}
+	}
+
+	/**
+	 * 
+	 * @param className
+	 * @param cacheStr
+	 * @return
+	 */
+	private AbstractClassDetails getClassDetails(String className, String cacheStr) {
+		AbstractClassDetails classInfoDo = null;
+		try {
+			classInfoDo = new AbstractClassDetails();
+			cacheStr = cacheStr.substring(cacheStr.indexOf(":-")+2);
+			String[] sArray = cacheStr.split("!");
+			classInfoDo.setClassname(className);
+			String value = sArray[1].substring(1,sArray[1].length()-1);
+			classInfoDo.setProperties(Arrays.asList(value.split("~")));
+			value = sArray[2].substring(1,sArray[2].length()-1);
+			classInfoDo.setMethods(Arrays.asList(value.split("~")));
+			
+		} catch(Exception e) {
+			e.printStackTrace();
+		}
+		return classInfoDo;
+	}
+	
+	/**
+	 * 
+	 * @param aProject
+	 * @return
+	 */
+	private IFile getProjectsCustomExprFile(IProject aProject) {
+		IFile file = null;
+		try {
+			String filename = PluginActivator.getDefault().getResourceBundle().getString("SPL_CUSTOM_EXPR_FILE_NAME");
+			file = EclipseFileUtil.getCacheFile(aProject.getFullPath()+"/"+filename);
+		} catch (CoreException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		return file;
+	}
+	
+	public void readCustomExprFromFile(IProject aProject) {
+		try {
+			IFile file = getProjectsCustomExprFile(aProject);
+			if(file != null) {
+				Properties fileProps = new Properties();
+				fileProps.load(file.getContents());
+				if(fileProps.size() > 0) {
+					Iterator iter = fileProps.keySet().iterator();
+					Properties innerProps = null;
+					Map innerMap = new HashMap();
+					String key, jarName, customName;
+					while(iter.hasNext()) {
+						key = (String)iter.next();
+						jarName = key.substring(0,key.indexOf("~"));
+						customName = key.substring(key.indexOf("~")+1).trim();
+						
+						if(innerMap.containsKey(jarName)) {
+							innerProps = (Properties)innerMap.get(jarName);
+							innerProps.put(customName, fileProps.get(key));
+						} else {
+							innerProps = new Properties();
+							innerProps.put(customName, fileProps.get(key));
+							innerMap.put(jarName, innerProps);
+						}
+					}
+					PluginActivator.getDefault().setCustomExprMap(aProject,innerMap);
+					SPLPolicyUtil.loadCustomClasses(aProject);
+				}
+			}
+		} catch(CoreException ce) {
+			ce.printStackTrace();
+		} catch(Exception ce) {
+			ce.printStackTrace();
+		}
+	}
+
+	public void writeCustomExprToFile(IProject aProject) {
+		try {
+			IFile file = getProjectsCustomExprFile(aProject);
+			if(file != null) {
+				Map innerMap = PluginActivator.getDefault().getCustomExprMap(aProject.getName());
+
+				// clear old data
+				ByteArrayInputStream baInputStream = null; 
+				baInputStream = new ByteArrayInputStream("".getBytes());
+				file.setContents(baInputStream, true, false, null);
+				
+//				System.out.println("innerMap"+innerMap);
+
+				if(innerMap != null && innerMap.size() > 0) {
+					Iterator iter = innerMap.keySet().iterator();
+					List contentsList = new ArrayList();
+					Properties props = null;
+					while(iter.hasNext()) {
+						String jarname = (String)iter.next();
+						props = (Properties)innerMap.get(jarname);
+						
+						// custom actions
+						String value = (String)props.get(PolicyMessages.SPL_CUSTOM_ACTIONS);
+						if(value != null && value.trim().length() > 0) {
+							contentsList.add(jarname+"~"+PolicyMessages.SPL_CUSTOM_ACTIONS+"="+value);
+						}
+						// custom expressions
+						value = (String)props.get(PolicyMessages.SPL_CUSTOM_EXPRESSIONS);
+						if(value != null && value.trim().length() > 0) {
+							contentsList.add(jarname+"~"+PolicyMessages.SPL_CUSTOM_EXPRESSIONS+"="+value);
+						}
+					}
+					
+					if(contentsList.size() > 0) {
+						for(int i=0;i<contentsList.size();i++) {
+							baInputStream = new ByteArrayInputStream((((String)contentsList.get(i))+"\n").getBytes());
+							file.appendContents(baInputStream, false, false, null);
+						}
+					}
+				} 
+			}
+		} catch(CoreException ce) {
+			ce.printStackTrace();
+		} catch(Exception ce) {
+			ce.printStackTrace();
+		}
+	}
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyCacheUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyContentOutlineTreeUtil.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyContentOutlineTreeUtil.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyContentOutlineTreeUtil.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyContentOutlineTreeUtil.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+public class PolicyContentOutlineTreeUtil {
+
+	private PolicyTokenNode rootElement;
+
+	public PolicyContentOutlineTreeUtil() {
+
+	}
+
+	public PolicyTokenNode getRootElement() {
+		return rootElement;
+	}
+
+	public void setRootElement(PolicyTokenNode rootElement) {
+		this.rootElement = rootElement;
+	}
+
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyContentOutlineTreeUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyFileImportStmtParserUtil.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyFileImportStmtParserUtil.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyFileImportStmtParserUtil.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyFileImportStmtParserUtil.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,275 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.imperius.spl.editor.tool.PluginActivator;
+import org.apache.imperius.spl.editor.tool.internal.client.IPolicyClient;
+import org.apache.imperius.spl.editor.tool.internal.client.IPolicyClientFactory;
+import org.apache.imperius.spl.editor.tool.internal.client.PolicyClientFactoryImpl;
+import org.apache.imperius.spl.editor.tool.ui.PolicyEditor;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+
+
+
+public class PolicyFileImportStmtParserUtil {
+
+	private static PolicyFileImportStmtParserUtil fPolicyImportParser = null;
+	
+	private PolicyEditor policyEditor;
+	
+	private IPolicyClientFactory clientFactory = null;
+	
+
+	/**
+	 * 
+	 * @param fEditor
+	 */
+	private PolicyFileImportStmtParserUtil(PolicyEditor fEditor) {
+		policyEditor = fEditor;
+	}
+
+	/**
+	 * 
+	 * @param fEditor
+	 * @return
+	 */
+	public static PolicyFileImportStmtParserUtil getParserInstance(PolicyEditor fEditor) {
+		if(fPolicyImportParser == null) {
+			fPolicyImportParser = new PolicyFileImportStmtParserUtil(fEditor);
+		}
+		return fPolicyImportParser;
+	}
+
+	/**
+	 * 
+	 * @return
+	 */
+	public IProject getProject() {
+		return ((IFile)policyEditor.getActiveEditorFile()).getProject();
+	}
+	
+	/**
+	 * 
+	 * @param policyString
+	 */
+	public void parsePolicyFileForImportStmts(String policyString) {
+		// check if any thing is written
+		try {
+			if(policyString != null && policyString.length()>0) {
+				// split the string to semi colons
+				String[] semiColonStmts = policyString.split(";");
+				if(semiColonStmts != null && semiColonStmts.length > 0) {
+					for(int i=0;i<semiColonStmts.length;i++) {
+						String tokenStr = semiColonStmts[i];
+						if(tokenStr.indexOf("Import") != -1 ) { 
+							parseImportStmt(tokenStr);
+						}
+					}
+				}
+			}
+		} catch(Exception e) {
+			PolicyPluginLogUtil.logError(e);
+		}
+	}	
+
+	/**
+	 * 
+	 * @param tokenStr
+	 */
+	private void parseImportStmt(String tokenStr) {
+		String classname = null;
+		try {
+			if(tokenStr != null && tokenStr.length() > 0) {
+				if(tokenStr.indexOf("Class") != -1) { 	
+					int qualifierIndex = tokenStr.indexOf("Qualifier");
+					int classIndex = tokenStr.indexOf("Class");
+					if(qualifierIndex != -1) {
+						//String namespace = tokenStr.substring(qualifierIndex+9,classIndex).trim();
+					}
+					String classStr = tokenStr.substring(classIndex).trim();
+					if(!"".equals(classStr.trim())) {
+						String[] tempArrObj = classStr.split(" ");
+						int identIndex = 0;
+						if(tempArrObj != null && tempArrObj.length>0) {
+							for(int j=0;j<tempArrObj.length;j++) {
+								if(!"".equals(tempArrObj[j].trim())) {
+									if(identIndex == 1) {
+										classname = tempArrObj[j].trim();
+										if(classname.indexOf(":") != -1) {
+											classname = classname.substring(0,classname.indexOf(":")).trim();
+										}
+										if(getClassCacheMapInfo().containsKey(classname)) {
+											classname = null;
+										}
+										break;
+									}
+									identIndex++;
+								}
+							}
+						}
+					}
+				}
+			}
+			
+			if(classname != null) {
+				clientFactory = new PolicyClientFactoryImpl();
+				IPolicyClient client = null;
+				String domain = PluginActivator.getDefault().getProjectType(policyEditor.getActiveEditorFile().getProject().getName());
+				
+				// get client 
+				client = clientFactory.getClient(domain);
+				if(client == null) {
+					return;
+				}
+				
+				Object classObj = null;
+				if("Java".equals(domain)) {
+				    URL[] urls =  SPLPolicyUtil.createURLs(getProject());
+					URLClassLoader uc = new URLClassLoader(urls);
+					classObj = uc.loadClass(classname);
+				} else {
+					classObj = classname;
+				}
+				
+				// get Class Properties
+				AbstractClassDetails classDetails = client.fetchClassDetails(classObj);
+				
+				if(classDetails != null) {
+					// add to map
+					getClassCacheMapInfo().put(classname, classDetails);
+					// build cache String and write to cache
+					buildCacheString(classDetails);
+				}
+			}
+		} catch (Exception e) {
+			PolicyPluginLogUtil.logError(e);
+		}
+	}
+
+	/**
+	 * 
+	 * @param classDetails
+	 */
+	private void buildCacheString(AbstractClassDetails classDetails) {
+		StringBuffer sbCacheString = null;
+		if(classDetails != null) {
+			sbCacheString = new StringBuffer();
+			sbCacheString.append(classDetails.getClassname()+":-!{");
+			// class property list
+			String propertyNamesStr = getPropertiesString(classDetails.getProperties());
+			if(!"".equals(propertyNamesStr)) {
+				sbCacheString.append(propertyNamesStr.substring(0, propertyNamesStr.length()-1));
+			}
+			sbCacheString.append("}!{");
+			// class methods list
+			String methodNamesStr = getMethodsString(classDetails.getMethods()); 
+			sbCacheString.append(methodNamesStr+"}");
+		}
+		
+		if(sbCacheString != null) {
+			writeToCacheFile(sbCacheString.toString());
+		}
+	}
+
+	/**
+	 * 
+	 * @param propertiesList
+	 * @return
+	 */
+	private String getPropertiesString(List propertiesList) {
+		String propertyNamesStr = "";
+		if(propertiesList != null && propertiesList.size() > 0) {
+			for(int i=0;i<propertiesList.size();i++) {
+				ClassProperty prop = (ClassProperty)propertiesList.get(i);
+				propertyNamesStr = propertyNamesStr + prop.getPropertyName() + "~";
+			}
+		}
+		return propertyNamesStr;
+	}
+
+	/**
+	 * 
+	 * @param methodsList
+	 * @return
+	 */
+	private String getMethodsString(List methodsList) {
+		String methodNamesStr = "";
+		if(methodsList != null && methodsList.size() > 0) {
+			for(int i=0;i<methodsList.size();i++) {
+				String sMethodSyntax = "";
+				ClassMethod method = (ClassMethod)methodsList.get(i);
+				sMethodSyntax = sMethodSyntax + method.getMethodName() + "(";
+				String sParameters = "";
+				for(int j=0;j<method.getParamCount();j++) {
+					MethodParameter parameter = method.getParameter(j);
+					sParameters = sParameters + parameter.getParamName() + ","; 
+				}
+				sParameters = sParameters.lastIndexOf(",")!=-1?sParameters.substring(0, sParameters.length()-1):sParameters;
+				sMethodSyntax = sMethodSyntax + sParameters + ")";
+				methodNamesStr = methodNamesStr + sMethodSyntax + "~";
+			}
+		}
+		methodNamesStr = !"".equals(methodNamesStr)?methodNamesStr.substring(0, methodNamesStr.length()-1):methodNamesStr;
+		return methodNamesStr;
+	}
+	
+	/**
+	 * 
+	 * @return
+	 */
+	private Map getClassCacheMapInfo() {
+		return (Map)(PolicyCacheUtil.projectCacheMapObj).get(getProject().getName());
+	}	
+
+	/**
+	 * 
+	 * @param cacheString
+	 */
+	private void writeToCacheFile(String cacheString) {
+		PolicyCacheUtil.getCacheUtilInstance().writeDataToCache(getProject(), cacheString);
+	}
+	
+//	/**
+//	 * 
+//	 * @param cacheMapStringObj
+//	 */
+//	private void writeToCacheFile(Map cacheMapStringObj) {
+//		if(cacheMapStringObj != null && cacheMapStringObj.size()>0) {
+//			Iterator iter = cacheMapStringObj.keySet().iterator();
+//			while(iter.hasNext()) {
+//				String classname = (String)iter.next();
+//				String valueStr = (String)cacheMapStringObj.get(classname); 
+//				PolicyCacheUtil.getCacheUtilInstance().writeDataToCache(getProject(), valueStr);
+//			}
+//		}
+//	}	
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyFileImportStmtParserUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyPluginLogUtil.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyPluginLogUtil.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyPluginLogUtil.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyPluginLogUtil.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+import org.apache.imperius.spl.editor.tool.PluginActivator;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
+
+public class PolicyPluginLogUtil {
+
+	/**
+	 * 
+	 * @param severity
+	 * @param code
+	 * @param message
+	 * @param ex
+	 * @return
+	 */
+	public static IStatus createStatus(int severity, int code, String message, Throwable ex)
{
+		String symbolicName = PluginActivator.getDefault().getBundle().getSymbolicName();
+		return new Status(severity, symbolicName, code, message, ex);
+	}	
+
+	/**
+	 * 
+	 * @param message
+	 */
+	public static void logMessage(String message) {
+		log(IStatus.WARNING, IStatus.OK, message, null);
+	}
+
+	/**
+	 * 
+	 * @param message
+	 * @param ex
+	 */
+	public static void logError(String message, Throwable ex) {
+		log(IStatus.ERROR, IStatus.OK, message, ex);
+	}
+
+	/**
+	 * 
+	 * @param ex
+	 */
+	public static void logError(Throwable ex) {
+		log(IStatus.ERROR, IStatus.OK, ex.getMessage(), ex);
+	}
+	
+	/**
+	 * 
+	 * @param severity
+	 * @param code
+	 * @param message
+	 * @param ex
+	 */
+	public static void log(int severity, int code, String message, Throwable ex) {
+		log(createStatus(severity, code, message, ex));
+	}
+
+	/**
+	 * 
+	 * @param status
+	 */
+	private static void log(IStatus status) {
+		PluginActivator.getDefault().getLog().log(status);
+	}
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyPluginLogUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyTokenNode.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyTokenNode.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyTokenNode.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyTokenNode.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.jface.text.Position;
+
+public class PolicyTokenNode {
+
+	private String nodeName;
+
+	private List childrenList;
+	
+	private int lineno;
+	
+	public Position nodePosition;
+	
+	public PolicyTokenNode(String policyTokenName, Position position) {
+		this.nodeName = policyTokenName;
+		this.nodePosition = position;
+	}
+	
+	public String getNodeName() {
+		return nodeName;
+	}
+	
+	public Position getNodePosition() {
+		return nodePosition;
+	}
+	
+	public void addChild(PolicyTokenNode child) {
+		if(childrenList == null) {
+			childrenList = new ArrayList();
+		}
+		childrenList.add(child);
+	}
+	
+	public List getChildren() {
+        if (childrenList == null) {
+            return new ArrayList();
+        }
+        return childrenList;
+	}
+	
+	public boolean hasChildren() {
+		if(childrenList == null) {
+			return false;
+		} else if(childrenList != null && childrenList.size() == 0) {
+			return false;
+		}
+		return true;
+	}
+
+	/**
+	 * @return the lineno
+	 */
+	public int getLineno() {
+		return lineno;
+	}
+
+	/**
+	 * @param lineno the lineno to set
+	 */
+	public void setLineno(int lineno) {
+		this.lineno = lineno;
+	}
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/PolicyTokenNode.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/SPLPolicyUtil.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/SPLPolicyUtil.java?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/SPLPolicyUtil.java
(added)
+++ incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/SPLPolicyUtil.java
Mon Jan 14 22:52:53 2008
@@ -0,0 +1,343 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+
+/**
+ * @author Naidu Javvadi <njavvadi@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.spl.editor.tool.utils;
+
+import java.io.File;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+
+import org.apache.imperius.spl.editor.tool.PluginActivator;
+import org.apache.imperius.spl.editor.tool.internal.messages.PolicyMessages;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathAttribute;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.launching.JavaRuntime;
+
+import org.apache.imperius.spl.parser.exceptions.SPLException;
+import org.apache.imperius.spl.parser.factory.ACPLParserMap;
+
+public class SPLPolicyUtil {
+
+	private static final String SPL_CORE_JAR_NAME = "imperius-splcore-1.0.0.jar";
+
+	private static final String SPL_PROJ_CLASSPATH = ".classpath";
+
+	public SPLPolicyUtil() {
+
+	}
+
+	public static URL[] createURLs(IProject project) {
+		URL[] fUrls = null;
+		try {
+			List entryList = new ArrayList();
+			String projectPath = project.getLocation().toOSString();
+			entryList.add(projectPath + File.separator + "bin");
+			IFile classpathFile = project.getFile(SPL_PROJ_CLASSPATH);
+			if (classpathFile != null) {
+				ClasspathXMLHandler handler = new ClasspathXMLHandler();
+				handler.setProjectPath(projectPath);
+				SAXParserFactory factory = SAXParserFactory.newInstance();
+				SAXParser saxParser = factory.newSAXParser();
+				saxParser.parse(classpathFile.getContents(), handler);
+				entryList.addAll(handler.getClassPathEntriesList());
+			}
+
+			if (entryList.size() > 0) {
+				fUrls = new URL[entryList.size()];
+				for (int j = 0; j < entryList.size(); j++) {
+					fUrls[j] = new File((String) entryList.get(j)).toURL();
+					System.out.println("=============fUrls================"+fUrls[j]);
+				}
+			}
+		} catch (Exception ex) {
+		}
+		return fUrls;
+	}
+
+	public static IJavaProject getJavaProject(IProject currentProject) {
+		IJavaProject javaProject = null;
+		try {
+			if (currentProject instanceof IAdaptable) {
+				IAdaptable a = (IAdaptable) currentProject;
+				IJavaElement javaElement = (IJavaElement) a
+						.getAdapter(IJavaElement.class);
+				if (javaElement != null) {
+					javaProject = javaElement.getJavaProject();
+				}
+			}
+		} catch (Exception e) {
+			System.out.println("Error while converting to JavaProject");
+		}
+		return javaProject;
+	}
+
+	public static void addJarToProjectsClasspath(IProject currentProject,
+			String destPath, String jarFileName) throws Exception {
+		try {
+			IJavaProject javaProj = getJavaProject(currentProject);
+			if (javaProj.isOpen()) {
+				destPath = destPath + File.separator + jarFileName;
+
+				// create classpath entry for the jar
+				// IClasspathEntry classpathEntry = JavaCore.newLibraryEntry(new
+				// Path(destPath), null, null);
+
+				IClasspathAttribute[] extraAttributes = new IClasspathAttribute[] { JavaCore
+						.newClasspathAttribute("custom", "true") };
+				IClasspathEntry classpathEntry = JavaCore.newLibraryEntry(
+						new Path(destPath), null, null, null, extraAttributes,
+						true);
+
+				// get classpath entries
+				Set entries = getJavaProjClassPathEntries(javaProj);
+				entries.add(classpathEntry);
+				// entries.add(classpathEntry1);
+				javaProj.setRawClasspath((IClasspathEntry[]) entries
+						.toArray(new IClasspathEntry[entries.size()]), null);
+			}
+		} catch (Exception ex) {
+			System.out
+					.println("SPLPolicyUtil.class : Error while adding jar file to the classpath");
+			throw ex;
+		}
+	}
+
+	public static void addJarToProjectsClasspath(IProject currentProject,
+			Map jarInfoMap) throws Exception {
+		try {
+			IJavaProject javaProj = getJavaProject(currentProject);
+			System.out.println("Hi" + javaProj.getRawClasspath());
+
+			// get SPL Core entry
+			List classPathEntryList = new ArrayList();
+
+			IClasspathEntry[] entries = javaProj.getRawClasspath();
+			if (entries != null && entries.length > 0) {
+				String filePath = "";
+				IClasspathAttribute[] extraAttributes = null;
+				for (int i = 0; i < entries.length; i++) {
+					filePath = entries[i].getPath().toOSString();
+					if (filePath.indexOf(SPL_CORE_JAR_NAME) != -1) {
+						classPathEntryList.add(entries[i]);
+						continue;
+					}
+					
+					// check if it is custom or not
+					extraAttributes = entries[i].getExtraAttributes();
+					if(extraAttributes != null) {
+						boolean flag=false;
+						for(int j=0;j<extraAttributes.length;j++) {
+							if("custom".equals(extraAttributes[j].getName())) {
+								flag = true;
+								break;
+							}
+						}
+						if(!flag) {
+							classPathEntryList.add(entries[i]);
+						}
+					} else {
+						classPathEntryList.add(entries[i]);
+					}
+				}
+			}
+			
+			Map innerMap = PluginActivator.getDefault().getCustomExprMap(currentProject.getName());
+			
+			if(innerMap == null) {
+				PolicyCacheUtil.getCacheUtilInstance().readCustomExprFromFile(currentProject);
+				innerMap = PluginActivator.getDefault().getCustomExprMap(currentProject.getName());
+			}
+
+			// create custom entries
+			if (jarInfoMap != null && jarInfoMap.size() > 0) {
+				Iterator iter = jarInfoMap.keySet().iterator();
+				String mapKey = "";
+				IClasspathAttribute[] extraAttributes = new IClasspathAttribute[] { JavaCore
+						.newClasspathAttribute("custom", "true") };
+				IClasspathEntry classpathEntry = null;
+				Map tempMap = new HashMap();
+				while (iter.hasNext()) {
+					mapKey = (String) iter.next();
+					tempMap.put(mapKey, innerMap.get(mapKey));
+					
+					classpathEntry = JavaCore.newLibraryEntry(
+							new Path((String) jarInfoMap.get(mapKey)), null, null, null, extraAttributes,
+							true);
+					classPathEntryList.add(classpathEntry);
+				}
+				innerMap = tempMap;
+			} else {
+				innerMap = new HashMap();
+			}
+			
+			PluginActivator.getDefault().setCustomExprMap(currentProject, innerMap);
+			
+			javaProj.setRawClasspath((IClasspathEntry[]) classPathEntryList
+					.toArray(new IClasspathEntry[classPathEntryList.size()]), null);
+			
+			PolicyCacheUtil.getCacheUtilInstance().writeCustomExprToFile(
+					currentProject);
+		} catch (Exception ex) {
+			System.out.println("SPLPolicyUtil.class : Error while adding jar file to the classpath");
+			throw ex;
+		}
+	}
+
+	public static void addSPLCoreJarToProjectsClasspath(
+			IProject currentProject, String destPath) throws Exception {
+		try {
+			IJavaProject javaProj = getJavaProject(currentProject);
+			IClasspathEntry classpathEntry = JavaCore.newLibraryEntry(new Path(
+					destPath), null, null);
+
+			// get classpath entries
+			Set entries = getJavaProjClassPathEntries(javaProj);
+			entries.add(classpathEntry);
+			javaProj.setRawClasspath((IClasspathEntry[]) entries
+					.toArray(new IClasspathEntry[entries.size()]), null);
+		} catch (Exception ex) {
+			System.out.println("SPLPolicyUtil.class : Error while adding jar file to the classpath");
+			throw ex;
+		}
+	}
+
+	public static Set getJavaProjClassPathEntries(IJavaProject aJavaProject) {
+		Set entrySet = new HashSet();
+		try {
+			entrySet.addAll(Arrays.asList(aJavaProject.getRawClasspath()));
+			entrySet.add(JavaRuntime.getDefaultJREContainerEntry());
+		} catch (Exception e) {
+			System.out.println("SPLPolicyUtil.class : Error while getting class path entries"
+							+ e.getMessage());
+		}
+		return entrySet;
+	}
+
+	public static void loadCustomActions(IProject project, Properties propsObj, String jarFileName)
{
+		try {
+			
+			// read the expressions file
+			PolicyCacheUtil.getCacheUtilInstance().readCustomExprFromFile(project);
+
+			PluginActivator.getDefault().loadCustomActions(project, propsObj,
+					jarFileName);
+
+			PolicyCacheUtil.getCacheUtilInstance().writeCustomExprToFile(project);
+
+		} catch (Exception ex) {
+			System.out.println("SPLPolicyUtil.class : Error while loading custom actions " + ex.getMessage());
+		}
+	}
+
+	public static List getCustomActionsList(IProject aProject) {
+		List returnList = new ArrayList();
+		if (aProject != null) {
+			Map innerMap = PluginActivator.getDefault().getCustomExprMap(
+					aProject.getName());
+			if (innerMap != null && innerMap.size() > 0) {
+				Iterator iterObj = innerMap.keySet().iterator();
+				Properties props = null;
+				String value = null;
+				while (iterObj.hasNext()) {
+					String key = (String) iterObj.next();
+					props = (Properties) innerMap.get(key);
+					if (props != null) {
+						value = (String) props
+								.get(PolicyMessages.SPL_CUSTOM_ACTIONS);
+						if (value != null && value.trim().length() > 0) {
+							returnList.addAll(Arrays.asList(value.split(",")));
+						}
+					}
+				}
+			}
+		}
+		return returnList;
+	}
+
+	public static List getCustomExpressionList(IProject aProject) {
+		List returnList = new ArrayList();
+		if (aProject != null) {
+			Map innerMap = PluginActivator.getDefault().getCustomExprMap(
+					aProject.getName());
+			if (innerMap != null && innerMap.size() > 0) {
+				Iterator iterObj = innerMap.keySet().iterator();
+				Properties props = null;
+				String value = null;
+				while (iterObj.hasNext()) {
+					String key = (String) iterObj.next();
+					props = (Properties) innerMap.get(key);
+					if (props != null) {
+						value = (String) props
+								.get(PolicyMessages.SPL_CUSTOM_EXPRESSIONS);
+						if (value != null && value.trim().length() > 0) {
+							if (!returnList.contains(value)) {
+								returnList.addAll(Arrays.asList(value.split(",")));
+							}
+						}
+					}
+				}
+			}
+		}
+		return returnList;
+	}
+	
+	public static void loadCustomClasses(IProject aProject) {
+		try {
+			// load in SPL Core
+			URL[] fUrls = SPLPolicyUtil.createURLs(aProject);
+			
+			ACPLParserMap.loadCustomActionExpressionTypes(SPLPolicyUtil
+					.getCustomActionsList(aProject), fUrls);
+
+			ACPLParserMap.loadCustomOperatorExpressionTypes(SPLPolicyUtil
+					.getCustomExpressionList(aProject), fUrls);
+		} catch (SPLException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+
+	}
+
+	public static void getCustomJarsFromClassPath() {
+
+	}
+}

Propchange: incubator/imperius/trunk/imperius-spleditorcore/src/org/apache/imperius/spl/editor/tool/utils/SPLPolicyUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/imperius/trunk/javaspl_runtime_pom.xml
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl_runtime_pom.xml?rev=612031&view=auto
==============================================================================
--- incubator/imperius/trunk/javaspl_runtime_pom.xml (added)
+++ incubator/imperius/trunk/javaspl_runtime_pom.xml Mon Jan 14 22:52:53 2008
@@ -0,0 +1,62 @@
+<!--
+ /*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.  
+ */
+ */ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>imperius</groupId>
+	<artifactId>build-all</artifactId>
+	<version>1.0.0-SNAPSHOT</version>
+	<name>Apache imperius</name>
+	<url>http://ws.apache.org/imperius</url>
+	<prerequisites>
+		<maven>2.0.4</maven>
+	</prerequisites>
+	<packaging>pom</packaging>
+	
+	<properties>
+		<imperius-version>1.0.0-SNAPSHOT</imperius-version>
+	</properties>
+	<modules>
+		<module>imperius-splcore</module>
+		<module>imperius-javaspl</module>
+		<module>javaspl-samples</module>
+		<!--<module>imperius-spleditorcore</module>
+		<module>imperius-javasplextension</module>-->
+	</modules>
+	
+	<build>
+		<defaultGoal>install</defaultGoal>
+		<sourceDirectory>src</sourceDirectory>
+		<resources>
+			<resource>
+				<directory>src</directory>
+				<includes>
+					<include>**/*.properties</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>resources</directory>
+				<targetPath>resources</targetPath>
+			</resource>
+		</resources>
+	</build>
+	
+</project>

Propchange: incubator/imperius/trunk/javaspl_runtime_pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/pom.xml?rev=612031&r1=612030&r2=612031&view=diff
==============================================================================
--- incubator/imperius/trunk/pom.xml (original)
+++ incubator/imperius/trunk/pom.xml Mon Jan 14 22:52:53 2008
@@ -38,6 +38,8 @@
 		<module>imperius-splcore</module>
 		<module>imperius-javaspl</module>
 		<module>javaspl-samples</module>
+		<module>imperius-spleditorcore</module>
+		<module>imperius-javasplextension</module>
 	</modules>
 	
 	<build>



Mime
View raw message