You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-commits@incubator.apache.org by ke...@apache.org on 2008/01/11 18:57:14 UTC

svn commit: r611261 [42/43] - in /incubator/imperius/trunk: ./ imperius-javaspl/ imperius-javaspl/src/main/java/org/apache/imperius/javaspl/ imperius-splcore/ imperius-splcore/src/main/antlr/org/apache/imperius/spl/parser/compiler/ imperius-splcore/src...

Modified: incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java (original)
+++ incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java Fri Jan 11 10:56:30 2008
@@ -1,222 +1,222 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
- *
- */
-
-
-package org.apache.imperius.spl.tests;
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.TimeZone;
-
-import org.apache.imperius.spl.external.Expression;
-import org.apache.imperius.spl.external.TypeConstants;
-import org.apache.imperius.spl.parser.exceptions.SPLException;
-import org.apache.imperius.spl.parser.expressions.impl.*;
-import org.apache.imperius.spl.parser.util.ExpressionUtility;
-import org.apache.imperius.spl.parser.util.TypeInfo;
-import org.apache.imperius.spl.parser.util.TypeResolver;
-
-import junit.extensions.TestSetup;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-
-
-
-
-public class UtilityTest extends TestCase {
-
-    static final String CMVC_ID_UtilityTest = "$Header: /cvsroot/cimsplpegasus/trunk/modules/imperius-splcore/src/com/ibm/ac/spl/tests/UtilityTest.java,v 1.2 2007/12/20 13:07:37 prabalig Exp $";
-    static final String VERSION_UtilityTest = "File version $Revision: 1.2 $, last changed $Date: 2007/12/20 13:07:37 $";
-//    private static Logger logger = SPLLogger.getCIMSPLLogger().getLogger();
-    
-    static Expression propertySensor1 =null;
-    //new ConstantExpression("propertySensor1");
-static Expression propertySensor2 =null;
-    //new PropertySensor("propertySensor2");
-static  Expression propertySensor3 =null;
-    //new PropertySensor("propertySensor3");
-static  Expression propertySensor4 =null;
-    //new PropertySensor("propertySensor4");
-static  Expression propertySensor5 =null;
-    //new PropertySensor("propertySensor5");
-static  Expression propertySensor6 =null;
-    //new PropertySensor("propertySensor6");
-static  Expression propertySensor7 =null;
-    //new PropertySensor("propertySensor7");
-static  Expression propertySensor8 =null;
-    //new PropertySensor("propertySensor8");
-static  Expression propertySensor9 =null;
-    //new PropertySensor("propertySensor9");
-static  Expression propertySensor10 =null;
-    //new PropertySensor("propertySensor10");
-    public UtilityTest(String arg0) {
-        super(arg0);
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(UtilityTest.class);
-        TestSetup wrapper = new TestSetup(suite) {
-
-            protected void setUp() throws Exception {
-                oneTimeSetUp();
-            }
-
-            protected void tearDown() throws Exception {
-                oneTimeTearDown();
-            }
-        };
-        return wrapper;
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(suite());
-    }
-
-    protected static void oneTimeSetUp() throws Exception {
-    }
-
-    protected static void oneTimeTearDown() throws Exception {
-
-    }
-
-    public void testExpressionUtility() {
-        Byte o1 = new Byte((byte)8);
-        Byte o2 = new Byte((byte)9);
-        
-        try {
-            assertTrue(ExpressionUtility.compare(o1, o2)==-1);
-            assertTrue(ExpressionUtility.minus(o2, o1).intValue()==(int)1);
-            assertTrue(ExpressionUtility.multiplication(o1, o2).intValue()==72);
-            assertTrue(ExpressionUtility.plus(o1, o2).intValue()==17);
-            assertTrue(ExpressionUtility.division(o2, o1).doubleValue()==(double)1.125);
-            
-            String YEAR="1999";
-            String MONTH="06";
-            String DAY_OF_MONTH="23";
-            String HOUR_OF_DAY="11";
-            String MINUTE="34";
-            String SECOND="34";
-            String MILLISECOND="123456";
-            String sign="-";
-            String UTC="330";
-            String CIMDateString=YEAR+MONTH+DAY_OF_MONTH+HOUR_OF_DAY+MINUTE+SECOND+"."+MILLISECOND+sign+UTC;
-           //System.out.println("CIMDateString = "+CIMDateString);
-            
-            
-            String  GMT            = "GMT";
-            int     UTC_MULTIPLIER = 60000;
-            int zoneOffsetMinutes=Integer.parseInt(UTC);
-            int zoneOffsetMilliseconds=zoneOffsetMinutes * UTC_MULTIPLIER;
-            Calendar cal = Calendar.getInstance (TimeZone.getTimeZone (GMT));
-            
-//          CIM date format yyyymmddHHMMSS.mmmmmmsUUU
-            
-            cal.set(Calendar.YEAR, 1999);
-            cal.set(Calendar.MONTH, 06);
-            cal.set(Calendar.DAY_OF_MONTH, 23);
-            cal.set(Calendar.HOUR_OF_DAY,11);
-            cal.set(Calendar.MINUTE, 34);
-            cal.set(Calendar.SECOND, 34);
-            
-            cal.set(Calendar.MILLISECOND, 123);
-            
-            if(sign.equalsIgnoreCase("-")){
-                zoneOffsetMilliseconds=0-zoneOffsetMilliseconds;
-            }
-            
-            cal.set(Calendar.ZONE_OFFSET, zoneOffsetMilliseconds);
-            //System.out.println("created calendar");
-            DateTimeConstant dtc=new DateTimeConstant(CIMDateString);
-            Calendar cal1= (Calendar)dtc.evaluate();
-           //System.out.println("cal1.getTimeInMillis() "+cal1.getTime()+" "+cal1.getTimeInMillis());
-            
-           //System.out.println("cal.getTimeInMillis() "+cal.getTime()+" "+cal.getTimeInMillis());
-            
-          //  assertTrue(cal1.getTimeInMillis()==cal.getTimeInMillis());          
-            
-        } catch (SPLException e) {
-            fail("Received evaluation exception " + e.getMessage());
-        } catch (Exception e) {
-            fail("Received expression exception " + e.getMessage());
-        }
-    }
-    
-    public void testTypeResolver() {
-        Byte o1 = new Byte((byte)8);
-        Float o2 = new Float((float)8.22);
-        Integer o3 = new Integer((int)8.22);
-        Long o4 = new Long((long)8.22);
-        Double o5 = new Double((double)8.22);
-        Number[] num={o1,o2,o3,o4,o5};
-        ByteConstant n1=new ByteConstant(o1.byteValue());
-        FloatConstant n2=new FloatConstant(o2.floatValue());
-        IntegerConstant n3=new IntegerConstant(o3.intValue());
-        LongConstant n4=new LongConstant(o4.longValue());
-        ArrayList passedParams=new ArrayList();
-        passedParams.add(n1);
-        passedParams.add(n2);
-        passedParams.add(n3);
-        passedParams.add(n4);
-        ArrayList formalParams=new ArrayList();
-        formalParams.add(new TypeInfo(TypeConstants.byteType));
-        formalParams.add(new TypeInfo(TypeConstants.floatType));
-        formalParams.add(new TypeInfo(TypeConstants.intType));
-        formalParams.add(new TypeInfo(TypeConstants.longType));
-        
-        
-        
-        
-        try {
-        	TypeInfo flt = new TypeInfo(TypeConstants.floatType);
-        	TypeInfo dbl = new TypeInfo(TypeConstants.doubleType);
-        	TypeInfo intt = new TypeInfo(TypeConstants.intType);
-        	TypeInfo lg = new TypeInfo(TypeConstants.longType);
-        	TypeInfo str = new TypeInfo(TypeConstants.stringType);
-        	TypeInfo bo	 = new TypeInfo(TypeConstants.booleanType);
-        	TypeInfo cal = new TypeInfo(TypeConstants.dateTime);
-        	TypeInfo bt = new TypeInfo(TypeConstants.byteType);
-        	
-        	//System.out.println("TypeResolver.resolveType(flt, dbl).getType()="+TypeResolver.resolveType(flt, dbl).getType());
-        	//System.out.println("TypeConstants.doubleType="+TypeConstants.doubleType);
-            assertTrue(TypeResolver.resolveType(flt, dbl).getType()==TypeConstants.doubleType);
-            assertTrue(TypeResolver.resolveType(num)==TypeConstants.doubleType);
-            assertTrue(TypeResolver.binaryNumericPromotionResolver(intt, lg).getType()==TypeConstants.longType);
-            assertFalse(TypeResolver.isTypeAssignableForEquality(bo, str));
-            assertFalse(TypeResolver.isTypeAssignableForRelation(bo, str));
-            assertFalse(TypeResolver.isNumeric(str));
-            assertTrue(TypeResolver.isString(str));
-            assertTrue(TypeResolver.isBoolean(bo));
-            assertTrue(TypeResolver.isCalendar(cal));
-            assertTrue(TypeResolver.validateActualParameterTypes(formalParams, passedParams));
-            assertTrue(TypeResolver.unaryNumericPromotionResolver(bt).getType()==TypeConstants.intType);
-            
-                        
-        } catch (SPLException e) {
-        	e.printStackTrace();
-            fail("Received evaluation exception " + e.getMessage());
-        } catch (Exception e) {
-        	e.printStackTrace();
-            fail("Received expression exception " + e.getMessage());
-        }
-    }
-    
- 
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+ *
+ */
+
+
+package org.apache.imperius.spl.tests;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.TimeZone;
+
+import org.apache.imperius.spl.external.Expression;
+import org.apache.imperius.spl.external.TypeConstants;
+import org.apache.imperius.spl.parser.exceptions.SPLException;
+import org.apache.imperius.spl.parser.expressions.impl.*;
+import org.apache.imperius.spl.parser.util.ExpressionUtility;
+import org.apache.imperius.spl.parser.util.TypeInfo;
+import org.apache.imperius.spl.parser.util.TypeResolver;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+
+
+
+
+public class UtilityTest extends TestCase {
+
+    static final String CMVC_ID_UtilityTest = "$Header: /cvsroot/cimsplpegasus/trunk/modules/imperius-splcore/src/com/ibm/ac/spl/tests/UtilityTest.java,v 1.2 2007/12/20 13:07:37 prabalig Exp $";
+    static final String VERSION_UtilityTest = "File version $Revision: 1.2 $, last changed $Date: 2007/12/20 13:07:37 $";
+//    private static Logger logger = SPLLogger.getCIMSPLLogger().getLogger();
+    
+    static Expression propertySensor1 =null;
+    //new ConstantExpression("propertySensor1");
+static Expression propertySensor2 =null;
+    //new PropertySensor("propertySensor2");
+static  Expression propertySensor3 =null;
+    //new PropertySensor("propertySensor3");
+static  Expression propertySensor4 =null;
+    //new PropertySensor("propertySensor4");
+static  Expression propertySensor5 =null;
+    //new PropertySensor("propertySensor5");
+static  Expression propertySensor6 =null;
+    //new PropertySensor("propertySensor6");
+static  Expression propertySensor7 =null;
+    //new PropertySensor("propertySensor7");
+static  Expression propertySensor8 =null;
+    //new PropertySensor("propertySensor8");
+static  Expression propertySensor9 =null;
+    //new PropertySensor("propertySensor9");
+static  Expression propertySensor10 =null;
+    //new PropertySensor("propertySensor10");
+    public UtilityTest(String arg0) {
+        super(arg0);
+    }
+
+    public static Test suite() {
+        TestSuite suite = new TestSuite(UtilityTest.class);
+        TestSetup wrapper = new TestSetup(suite) {
+
+            protected void setUp() throws Exception {
+                oneTimeSetUp();
+            }
+
+            protected void tearDown() throws Exception {
+                oneTimeTearDown();
+            }
+        };
+        return wrapper;
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(suite());
+    }
+
+    protected static void oneTimeSetUp() throws Exception {
+    }
+
+    protected static void oneTimeTearDown() throws Exception {
+
+    }
+
+    public void testExpressionUtility() {
+        Byte o1 = new Byte((byte)8);
+        Byte o2 = new Byte((byte)9);
+        
+        try {
+            assertTrue(ExpressionUtility.compare(o1, o2)==-1);
+            assertTrue(ExpressionUtility.minus(o2, o1).intValue()==(int)1);
+            assertTrue(ExpressionUtility.multiplication(o1, o2).intValue()==72);
+            assertTrue(ExpressionUtility.plus(o1, o2).intValue()==17);
+            assertTrue(ExpressionUtility.division(o2, o1).doubleValue()==(double)1.125);
+            
+            String YEAR="1999";
+            String MONTH="06";
+            String DAY_OF_MONTH="23";
+            String HOUR_OF_DAY="11";
+            String MINUTE="34";
+            String SECOND="34";
+            String MILLISECOND="123456";
+            String sign="-";
+            String UTC="330";
+            String CIMDateString=YEAR+MONTH+DAY_OF_MONTH+HOUR_OF_DAY+MINUTE+SECOND+"."+MILLISECOND+sign+UTC;
+           //System.out.println("CIMDateString = "+CIMDateString);
+            
+            
+            String  GMT            = "GMT";
+            int     UTC_MULTIPLIER = 60000;
+            int zoneOffsetMinutes=Integer.parseInt(UTC);
+            int zoneOffsetMilliseconds=zoneOffsetMinutes * UTC_MULTIPLIER;
+            Calendar cal = Calendar.getInstance (TimeZone.getTimeZone (GMT));
+            
+//          CIM date format yyyymmddHHMMSS.mmmmmmsUUU
+            
+            cal.set(Calendar.YEAR, 1999);
+            cal.set(Calendar.MONTH, 06);
+            cal.set(Calendar.DAY_OF_MONTH, 23);
+            cal.set(Calendar.HOUR_OF_DAY,11);
+            cal.set(Calendar.MINUTE, 34);
+            cal.set(Calendar.SECOND, 34);
+            
+            cal.set(Calendar.MILLISECOND, 123);
+            
+            if(sign.equalsIgnoreCase("-")){
+                zoneOffsetMilliseconds=0-zoneOffsetMilliseconds;
+            }
+            
+            cal.set(Calendar.ZONE_OFFSET, zoneOffsetMilliseconds);
+            //System.out.println("created calendar");
+            DateTimeConstant dtc=new DateTimeConstant(CIMDateString);
+            Calendar cal1= (Calendar)dtc.evaluate();
+           //System.out.println("cal1.getTimeInMillis() "+cal1.getTime()+" "+cal1.getTimeInMillis());
+            
+           //System.out.println("cal.getTimeInMillis() "+cal.getTime()+" "+cal.getTimeInMillis());
+            
+          //  assertTrue(cal1.getTimeInMillis()==cal.getTimeInMillis());          
+            
+        } catch (SPLException e) {
+            fail("Received evaluation exception " + e.getMessage());
+        } catch (Exception e) {
+            fail("Received expression exception " + e.getMessage());
+        }
+    }
+    
+    public void testTypeResolver() {
+        Byte o1 = new Byte((byte)8);
+        Float o2 = new Float((float)8.22);
+        Integer o3 = new Integer((int)8.22);
+        Long o4 = new Long((long)8.22);
+        Double o5 = new Double((double)8.22);
+        Number[] num={o1,o2,o3,o4,o5};
+        ByteConstant n1=new ByteConstant(o1.byteValue());
+        FloatConstant n2=new FloatConstant(o2.floatValue());
+        IntegerConstant n3=new IntegerConstant(o3.intValue());
+        LongConstant n4=new LongConstant(o4.longValue());
+        ArrayList passedParams=new ArrayList();
+        passedParams.add(n1);
+        passedParams.add(n2);
+        passedParams.add(n3);
+        passedParams.add(n4);
+        ArrayList formalParams=new ArrayList();
+        formalParams.add(new TypeInfo(TypeConstants.byteType));
+        formalParams.add(new TypeInfo(TypeConstants.floatType));
+        formalParams.add(new TypeInfo(TypeConstants.intType));
+        formalParams.add(new TypeInfo(TypeConstants.longType));
+        
+        
+        
+        
+        try {
+        	TypeInfo flt = new TypeInfo(TypeConstants.floatType);
+        	TypeInfo dbl = new TypeInfo(TypeConstants.doubleType);
+        	TypeInfo intt = new TypeInfo(TypeConstants.intType);
+        	TypeInfo lg = new TypeInfo(TypeConstants.longType);
+        	TypeInfo str = new TypeInfo(TypeConstants.stringType);
+        	TypeInfo bo	 = new TypeInfo(TypeConstants.booleanType);
+        	TypeInfo cal = new TypeInfo(TypeConstants.dateTime);
+        	TypeInfo bt = new TypeInfo(TypeConstants.byteType);
+        	
+        	//System.out.println("TypeResolver.resolveType(flt, dbl).getType()="+TypeResolver.resolveType(flt, dbl).getType());
+        	//System.out.println("TypeConstants.doubleType="+TypeConstants.doubleType);
+            assertTrue(TypeResolver.resolveType(flt, dbl).getType()==TypeConstants.doubleType);
+            assertTrue(TypeResolver.resolveType(num)==TypeConstants.doubleType);
+            assertTrue(TypeResolver.binaryNumericPromotionResolver(intt, lg).getType()==TypeConstants.longType);
+            assertFalse(TypeResolver.isTypeAssignableForEquality(bo, str));
+            assertFalse(TypeResolver.isTypeAssignableForRelation(bo, str));
+            assertFalse(TypeResolver.isNumeric(str));
+            assertTrue(TypeResolver.isString(str));
+            assertTrue(TypeResolver.isBoolean(bo));
+            assertTrue(TypeResolver.isCalendar(cal));
+            assertTrue(TypeResolver.validateActualParameterTypes(formalParams, passedParams));
+            assertTrue(TypeResolver.unaryNumericPromotionResolver(bt).getType()==TypeConstants.intType);
+            
+                        
+        } catch (SPLException e) {
+        	e.printStackTrace();
+            fail("Received evaluation exception " + e.getMessage());
+        } catch (Exception e) {
+        	e.printStackTrace();
+            fail("Received expression exception " + e.getMessage());
+        }
+    }
+    
+ 
 }

Propchange: incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/imperius/trunk/javaspl-samples/customexpressions.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/pom.xml
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/pom.xml?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/pom.xml (original)
+++ incubator/imperius/trunk/javaspl-samples/pom.xml Fri Jan 11 10:56:30 2008
@@ -1,57 +1,57 @@
-<!--
- * Licensed 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>javaspl-samples</artifactId>
-  <packaging>jar</packaging>
-  <version>1.0.0-SNAPSHOT</version>
-  <name>javaspl-samples</name>
-   <dependencies>
-	  <dependency>
-		<groupId>imperius</groupId>
-		<artifactId>imperius-splcore</artifactId>
-		<version>1.0.0-SNAPSHOT</version>
-	    </dependency>
-	    <dependency>
-		<groupId>imperius</groupId>
-		<artifactId>imperius-javaspl</artifactId>
-		<version>1.0.0-SNAPSHOT</version>
-	    </dependency>
-	    <dependency>
-		     <groupId>junit</groupId>
-		      <artifactId>junit</artifactId>
-		      <version>3.8.1</version>
-	       </dependency>
-	       <dependency>
-		    <groupId>javax.mail</groupId>
-		    <artifactId>mail</artifactId>
-		    <version>1.4</version>
-		</dependency>
-		 <dependency>
-		    <groupId>javax.mail</groupId>
-		    <artifactId>mail</artifactId>
-		    <version>1.4</version>
-		</dependency>
-		<dependency>
-		    <groupId>javax.activation</groupId>
-		    <artifactId>activation</artifactId>
-		    <version>1.1</version>
-		</dependency>
-    
-  </dependencies>
-  
- 
-</project>
+<!--
+ * Licensed 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>javaspl-samples</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>javaspl-samples</name>
+   <dependencies>
+	  <dependency>
+		<groupId>imperius</groupId>
+		<artifactId>imperius-splcore</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	    </dependency>
+	    <dependency>
+		<groupId>imperius</groupId>
+		<artifactId>imperius-javaspl</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	    </dependency>
+	    <dependency>
+		     <groupId>junit</groupId>
+		      <artifactId>junit</artifactId>
+		      <version>3.8.1</version>
+	       </dependency>
+	       <dependency>
+		    <groupId>javax.mail</groupId>
+		    <artifactId>mail</artifactId>
+		    <version>1.4</version>
+		</dependency>
+		 <dependency>
+		    <groupId>javax.mail</groupId>
+		    <artifactId>mail</artifactId>
+		    <version>1.4</version>
+		</dependency>
+		<dependency>
+		    <groupId>javax.activation</groupId>
+		    <artifactId>activation</artifactId>
+		    <version>1.1</version>
+		</dependency>
+    
+  </dependencies>
+  
+ 
+</project>

Propchange: incubator/imperius/trunk/javaspl-samples/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/README.txt
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/README.txt?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/README.txt (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/README.txt Fri Jan 11 10:56:30 2008
@@ -1,64 +1,64 @@
-
-                                Imperius
- 
-
- 
- What is it? 
-  
------------
-  
- 
-Imperius (Simple Policy Language) or SPL - Is a simple standards based
-object-oriented policy language that allows expression of management
-policies using condition-action rules. Imperius provides an extensible
-set of over 100 operations for expressing conditions and actions.
-
-Imperius is a generalization of the CIM-SPL language. Conversely,
-CIM-SPL can be thought of as Imperius with CIM binding. Imperius can
-be extended to create similar bindings for other environments. JavaSPL
-(Imperius with Java binding) is another such example.
-
-
-
-  The Latest Version
-  
-------------------
-
-  
-Details of the latest version can be found on the Apache Imperius
-  
-Project web site <http://incubator.apache.org/Imperius/>.
-
-
-  
-
-Documentation
-  
--------------
-
- 
- Documentation is available online at the project website
-
-
-Samples
---------
-Samples are located under the /samples folder.
-
- Licensing
-  
----------
-
-  
-This software is licensed under the terms you may find in the file 
- 
- named "LICENSE" in this directory.
-  
-
- 
- Thanks for using Imperius.
-
-                                          
-The Apache Imperius Project
-                                         
-<http://incubator.apache.org/Imperius/>
-
+
+                                Imperius
+ 
+
+ 
+ What is it? 
+  
+-----------
+  
+ 
+Imperius (Simple Policy Language) or SPL - Is a simple standards based
+object-oriented policy language that allows expression of management
+policies using condition-action rules. Imperius provides an extensible
+set of over 100 operations for expressing conditions and actions.
+
+Imperius is a generalization of the CIM-SPL language. Conversely,
+CIM-SPL can be thought of as Imperius with CIM binding. Imperius can
+be extended to create similar bindings for other environments. JavaSPL
+(Imperius with Java binding) is another such example.
+
+
+
+  The Latest Version
+  
+------------------
+
+  
+Details of the latest version can be found on the Apache Imperius
+  
+Project web site <http://incubator.apache.org/Imperius/>.
+
+
+  
+
+Documentation
+  
+-------------
+
+ 
+ Documentation is available online at the project website
+
+
+Samples
+--------
+Samples are located under the /samples folder.
+
+ Licensing
+  
+---------
+
+  
+This software is licensed under the terms you may find in the file 
+ 
+ named "LICENSE" in this directory.
+  
+
+ 
+ Thanks for using Imperius.
+
+                                          
+The Apache Imperius Project
+                                         
+<http://incubator.apache.org/Imperius/>
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl Fri Jan 11 10:56:30 2008
@@ -1,89 +1,89 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
-// This is a sample compliance policy which checks for the JDK and WindowsXP versions for compliance
-// In case of non-compliance an email is sent
-
-
-
-Import Class org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsComputerSystem:system1;
-
-Strategy Execute_All_Applicable;
-
-Declaration
-{
-
-	from = "jneeraj@us.ibm.com";
-	to = "jneeraj@us.ibm.com";
-
-   
-}
-Policy 
-{
-	Declaration
- 	{
-		supportedJavaVersion = "1.5" ; 
-    			
-		subject = "Java version noncompliance";
-		message = Concatenate( "IBM does not support java :", system1.javaVersion );
- 	}
-
-    	Condition 
-    	{
-
-		system1.javaVersion != supportedJavaVersion 
-
-    	}   
-
-    	Decision 
-    	{  
- 
-       		SendMail( from, to, subject, message )
-  
-    	}
-}:1;
-
-Policy 
-{
-	Declaration
- 	{
-    	windowsOS = "Windows XP";
-		validOSVersions = ["5.2","5.3","5.4"];
-		minPatchLevel = "Service Pack 2" ; 
-
-		
-		subject = "Windows OS noncompliance";
-		message = "IBM mandates Windows OS Version 5.2 and Patch Level Service Pack 2";
- 	}
-
-    Condition 
-    {
-
-	( !InCollection(system1.osVersion, validOSVersions )||
-		( system1.osPatchLevel != minPatchLevel )) 
-
-    }   
-
-    Decision 
-    {  
- 
-      		SendMail(from, to, subject, message )
-  
-    }
-}:1;
-
-
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+// This is a sample compliance policy which checks for the JDK and WindowsXP versions for compliance
+// In case of non-compliance an email is sent
+
+
+
+Import Class org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsComputerSystem:system1;
+
+Strategy Execute_All_Applicable;
+
+Declaration
+{
+
+	from = "jneeraj@us.ibm.com";
+	to = "jneeraj@us.ibm.com";
+
+   
+}
+Policy 
+{
+	Declaration
+ 	{
+		supportedJavaVersion = "1.5" ; 
+    			
+		subject = "Java version noncompliance";
+		message = Concatenate( "IBM does not support java :", system1.javaVersion );
+ 	}
+
+    	Condition 
+    	{
+
+		system1.javaVersion != supportedJavaVersion 
+
+    	}   
+
+    	Decision 
+    	{  
+ 
+       		SendMail( from, to, subject, message )
+  
+    	}
+}:1;
+
+Policy 
+{
+	Declaration
+ 	{
+    	windowsOS = "Windows XP";
+		validOSVersions = ["5.2","5.3","5.4"];
+		minPatchLevel = "Service Pack 2" ; 
+
+		
+		subject = "Windows OS noncompliance";
+		message = "IBM mandates Windows OS Version 5.2 and Patch Level Service Pack 2";
+ 	}
+
+    Condition 
+    {
+
+	( !InCollection(system1.osVersion, validOSVersions )||
+		( system1.osPatchLevel != minPatchLevel )) 
+
+    }   
+
+    Decision 
+    {  
+ 
+      		SendMail(from, to, subject, message )
+  
+    }
+}:1;
+
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl Fri Jan 11 10:56:30 2008
@@ -1,85 +1,85 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
-
-
-Import Class org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsComputerSystem:system1;
-
-Strategy Execute_All_Applicable;
-
-Declaration
-{
-
-	minimumFreeSpaceThreshold  = 4 ; 
-	warningFreeSpaceThreshold  = 5 ; 
-	from = "jneeraj@us.ibm.com";
-	to = "jneeraj@us.ibm.com";
-
-	
-   
-}
-
-Policy 
-{
-    	Condition 
-    	{
-
-		system1.freeSpace < minimumFreeSpaceThreshold  
-
-    	}   
-
-    	Decision 
-    	{   
-
-       		system1.deleteFiles( "RecycleBin" ) -> SendMail(from,to,"Critical storage situation","RecycleBin emptied")   
-
-    	}
-}:1;
-
-
-Policy 
-{
-    	Condition 
-    	{
-
-		system1.freeSpace < warningFreeSpaceThreshold  
-
-    	}   
-
-    	Decision 
-    	{   
-
-       		system1.deleteFiles( "TemporaryInternetFiles" ) -> SendMail(from,to,"Critical storage situation","TemporaryInternetFiles deleted")   
-
-    	}
-}:1;
-
-Policy 
-{
-    	Condition 
-    	{
-
-		system1.freeSpace < warningFreeSpaceThreshold  
-
-    	}   
-
-    	Decision 
-    	{   
-
-       		CommandLineExecution( "cleanmgr /sagerun:128" ) -> SendMail(from,to,"Critical storage situation","TemporaryFiles deleted")   
-
-    	}
-}:1;
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+
+
+Import Class org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsComputerSystem:system1;
+
+Strategy Execute_All_Applicable;
+
+Declaration
+{
+
+	minimumFreeSpaceThreshold  = 4 ; 
+	warningFreeSpaceThreshold  = 5 ; 
+	from = "jneeraj@us.ibm.com";
+	to = "jneeraj@us.ibm.com";
+
+	
+   
+}
+
+Policy 
+{
+    	Condition 
+    	{
+
+		system1.freeSpace < minimumFreeSpaceThreshold  
+
+    	}   
+
+    	Decision 
+    	{   
+
+       		system1.deleteFiles( "RecycleBin" ) -> SendMail(from,to,"Critical storage situation","RecycleBin emptied")   
+
+    	}
+}:1;
+
+
+Policy 
+{
+    	Condition 
+    	{
+
+		system1.freeSpace < warningFreeSpaceThreshold  
+
+    	}   
+
+    	Decision 
+    	{   
+
+       		system1.deleteFiles( "TemporaryInternetFiles" ) -> SendMail(from,to,"Critical storage situation","TemporaryInternetFiles deleted")   
+
+    	}
+}:1;
+
+Policy 
+{
+    	Condition 
+    	{
+
+		system1.freeSpace < warningFreeSpaceThreshold  
+
+    	}   
+
+    	Decision 
+    	{   
+
+       		CommandLineExecution( "cleanmgr /sagerun:128" ) -> SendMail(from,to,"Critical storage situation","TemporaryFiles deleted")   
+
+    	}
+}:1;

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat Fri Jan 11 10:56:30 2008
@@ -1,4 +1,4 @@
-
-echo "Running Java compliance Sample..."
-set CLASSPATH=%CLASSPATH%;%ANTLR_HOME%/lib/antlr.jar;../../lib/imperius-javaspl-1.0.0.jar;../../lib/imperius-splcore-1.0.0.jar;../../lib/javaspl-samples-1.0.0.jar;%JAVA_MAIL_HOME%/mail-1.4.jar;%JAVA_MAIL_HOME%/activation-1.1.jar
-java org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsSystemManager Java_Compliance
+
+echo "Running Java compliance Sample..."
+set CLASSPATH=%CLASSPATH%;%ANTLR_HOME%/lib/antlr.jar;../../lib/imperius-javaspl-1.0.0.jar;../../lib/imperius-splcore-1.0.0.jar;../../lib/javaspl-samples-1.0.0.jar;%JAVA_MAIL_HOME%/mail-1.4.jar;%JAVA_MAIL_HOME%/activation-1.1.jar
+java org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsSystemManager Java_Compliance

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat Fri Jan 11 10:56:30 2008
@@ -1,4 +1,4 @@
-
-echo "Running Java file system Sample..."
-set CLASSPATH=%CLASSPATH%;%ANTLR_HOME%/lib/antlr.jar;../../lib/imperius-javaspl-1.0.0.jar;../../lib/imperius-splcore-1.0.0.jar;../../lib/javaspl-samples-1.0.0.jar;%JAVA_MAIL_HOME%/mail-1.4.jar;%JAVA_MAIL_HOME%/activation-1.1.jar
-java org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsSystemManager  Java_FileSystem
+
+echo "Running Java file system Sample..."
+set CLASSPATH=%CLASSPATH%;%ANTLR_HOME%/lib/antlr.jar;../../lib/imperius-javaspl-1.0.0.jar;../../lib/imperius-splcore-1.0.0.jar;../../lib/javaspl-samples-1.0.0.jar;%JAVA_MAIL_HOME%/mail-1.4.jar;%JAVA_MAIL_HOME%/activation-1.1.jar
+java org.apache.imperius.javaspl.samples.windowscomputersystem.WindowsSystemManager  Java_FileSystem

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl Fri Jan 11 10:56:30 2008
@@ -1,43 +1,43 @@
-/*
- * Licensed 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.
- */
-/* A Simple policy demonstrates the following:
-1. Importing multiple classes with multiple instances.
-2. Invoking methods of imported instances
-3. Returning values as part of decision
-*/
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.SampleClass : sc1,sc2 ;
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.AnotherClass : ac1 ;
-
-Strategy Execute_All_Applicable;
-Policy 
-{
-Declaration
-{
-    four = 4;
-}
-Condition 
-{  
-
-     SquareRoot(16) == four && 
-     sc1.ec.getEmbeddedClassProperty1() == "ec1" &&  sc2.sampleClassProperty2 == 4 && 
-     ac1.anotherClassProperty1 == 5
-}
-Decision 
-{   
-        ReturnValues("xxx","yyy") 
-}
-}:1;
-
-
-
+/*
+ * Licensed 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.
+ */
+/* A Simple policy demonstrates the following:
+1. Importing multiple classes with multiple instances.
+2. Invoking methods of imported instances
+3. Returning values as part of decision
+*/
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.SampleClass : sc1,sc2 ;
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.AnotherClass : ac1 ;
+
+Strategy Execute_All_Applicable;
+Policy 
+{
+Declaration
+{
+    four = 4;
+}
+Condition 
+{  
+
+     SquareRoot(16) == four && 
+     sc1.ec.getEmbeddedClassProperty1() == "ec1" &&  sc2.sampleClassProperty2 == 4 && 
+     ac1.anotherClassProperty1 == 5
+}
+Decision 
+{   
+        ReturnValues("xxx","yyy") 
+}
+}:1;
+
+
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl Fri Jan 11 10:56:30 2008
@@ -1,113 +1,113 @@
-/*
- * Licensed 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.
- */
-// Demonstrates a large variety of built in operators that ship with SPL 
-
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;
-Policy 
-{
-    Declaration
-    {
-        integervar = 4000;
-        stringtxt1 = "neeraj";
-        stringtxt2 = "joshi";
-  
-    }
-    Condition  // Arithmetic operators
-    {  
-        Power(200,2) + Abs(Ln(5) - Floor(2.4)) - Ceiling(7.1 + Ln(8)) - Max(2,5,10) - Min(4,2,9)* Round(4.2) == 4 
-    }   
-    Decision 
-    {   
-        Set(te.s32 = 30) 
-    }
-}:1;
-
-Policy 
-{
-
-    Declaration
-    {
-        somestr = "-520";
-    }
-    Condition // String operators
-    {  
-       Contains(SubString(Concatenate("abc","def"),3),"ef") 
-       || LeftSubString(RightSubString("neerajramchandrajoshi",6,"LeftToRight"),3,"LeftToRight") == "ram" 
-       || Contains(MiddleSubString("neerajramchandrajoshi",7,10,"LeftToRight"),"ram") 
-                       
-    }
-    Decision 
-    {   
-       
-        Set(te.s = somestr) == 0
-
-    }
-}:4;
-Policy
-{
-    Declaration
-    {
-        oddarray = [1,3,5,7];
-        evenarray = [2,4,6,8];
-        allarray = [1,2,3,4,5,6,7,8];
-        
-    
-    }
-    Condition // Collection operators
-    {
-        EqCollection(Union(oddarray,evenarray),allarray) 
-        && SubCollection(oddarray,allarray) 
-        && AllInCollection(Sum(evenarray),"LESS",allarray) 
-        && (CollectionSize(oddarray) == 4) && AnyInCollection(3, "GREATER",evenarray) 
-        && (Sum(ApplyToCollection(4, "PLUS", allarray)) >= 32)
-
-    } 
-    Decision
-    {
-        Set(te.s = "x") == 0
-
-
-    }
-
-}:3;
-Policy
-{
-    Declaration
-    {
-        todaysdate = "20070615164020.000000-300";
-        tomorrowsdate = "20070616164020.000000-300";
-        yesterdaysdate = "20070614164020.000000-300";
-      
-    }
-    Condition // Date time operators
-    {
-        GetDayOfMonth(todaysdate) == GetDayOfMonth(tomorrowsdate) - 1 
-        && GetDayOfWeek(todaysdate) == 6 
-        && GetDayOfWeekInMonth(todaysdate) == 3
-        && GetHour24(todaysdate) == 16
-        && GetMonth(todaysdate) == 5
-        
-
-    } 
-    Decision
-    {
-        Set(te.s = "x") == 0
-
-
-    }
-
-}:6;
-        
-
+/*
+ * Licensed 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.
+ */
+// Demonstrates a large variety of built in operators that ship with SPL 
+
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;
+Policy 
+{
+    Declaration
+    {
+        integervar = 4000;
+        stringtxt1 = "neeraj";
+        stringtxt2 = "joshi";
+  
+    }
+    Condition  // Arithmetic operators
+    {  
+        Power(200,2) + Abs(Ln(5) - Floor(2.4)) - Ceiling(7.1 + Ln(8)) - Max(2,5,10) - Min(4,2,9)* Round(4.2) == 4 
+    }   
+    Decision 
+    {   
+        Set(te.s32 = 30) 
+    }
+}:1;
+
+Policy 
+{
+
+    Declaration
+    {
+        somestr = "-520";
+    }
+    Condition // String operators
+    {  
+       Contains(SubString(Concatenate("abc","def"),3),"ef") 
+       || LeftSubString(RightSubString("neerajramchandrajoshi",6,"LeftToRight"),3,"LeftToRight") == "ram" 
+       || Contains(MiddleSubString("neerajramchandrajoshi",7,10,"LeftToRight"),"ram") 
+                       
+    }
+    Decision 
+    {   
+       
+        Set(te.s = somestr) == 0
+
+    }
+}:4;
+Policy
+{
+    Declaration
+    {
+        oddarray = [1,3,5,7];
+        evenarray = [2,4,6,8];
+        allarray = [1,2,3,4,5,6,7,8];
+        
+    
+    }
+    Condition // Collection operators
+    {
+        EqCollection(Union(oddarray,evenarray),allarray) 
+        && SubCollection(oddarray,allarray) 
+        && AllInCollection(Sum(evenarray),"LESS",allarray) 
+        && (CollectionSize(oddarray) == 4) && AnyInCollection(3, "GREATER",evenarray) 
+        && (Sum(ApplyToCollection(4, "PLUS", allarray)) >= 32)
+
+    } 
+    Decision
+    {
+        Set(te.s = "x") == 0
+
+
+    }
+
+}:3;
+Policy
+{
+    Declaration
+    {
+        todaysdate = "20070615164020.000000-300";
+        tomorrowsdate = "20070616164020.000000-300";
+        yesterdaysdate = "20070614164020.000000-300";
+      
+    }
+    Condition // Date time operators
+    {
+        GetDayOfMonth(todaysdate) == GetDayOfMonth(tomorrowsdate) - 1 
+        && GetDayOfWeek(todaysdate) == 6 
+        && GetDayOfWeekInMonth(todaysdate) == 3
+        && GetHour24(todaysdate) == 16
+        && GetMonth(todaysdate) == 5
+        
+
+    } 
+    Decision
+    {
+        Set(te.s = "x") == 0
+
+
+    }
+
+}:6;
+        
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl Fri Jan 11 10:56:30 2008
@@ -1,43 +1,43 @@
-/*
- * Licensed 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.
- */
-// Demonstrates various DateTime operators
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;
-Policy
-{
-    Declaration
-    {
-        todaysdate = "20071013143920.000000-300";
-        tomorrowsdate = "20071014143920.000000-300";
-        yesterdaysdate = "20071012143920.000000-300";
-      
-    }
-    Condition
-    {
-        GetDayOfMonth(todaysdate) == GetDayOfMonth(tomorrowsdate) - 1 
-        && GetDayOfWeek(todaysdate) == 3 
-        && GetDayOfWeekInMonth(todaysdate) == 2
-        && GetHour24(todaysdate) == 14
-        && GetMonth(todaysdate) == 10
-        
-
-    } 
-    Decision
-    {
-        Set(te.s = "x") == 0
-
-
-    }
-
+/*
+ * Licensed 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.
+ */
+// Demonstrates various DateTime operators
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;
+Policy
+{
+    Declaration
+    {
+        todaysdate = "20071013143920.000000-300";
+        tomorrowsdate = "20071014143920.000000-300";
+        yesterdaysdate = "20071012143920.000000-300";
+      
+    }
+    Condition
+    {
+        GetDayOfMonth(todaysdate) == GetDayOfMonth(tomorrowsdate) - 1 
+        && GetDayOfWeek(todaysdate) == 3 
+        && GetDayOfWeekInMonth(todaysdate) == 2
+        && GetHour24(todaysdate) == 14
+        && GetMonth(todaysdate) == 10
+        
+
+    } 
+    Decision
+    {
+        Set(te.s = "x") == 0
+
+
+    }
+
 }:6;

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl Fri Jan 11 10:56:30 2008
@@ -1,33 +1,33 @@
-/*
- * Licensed 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.
- */
-// Demonstrates how to invoke a method on the anchor instance
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;
-
-Policy
-{
-        Declaration
-        {
-            excpectedReturnValue = 10;
-        
-        }
-        Condition
-        {
-            true
-        }
-        Decision
-        { 
-            te.testMethod(1,2) <= 4
-        }
+/*
+ * Licensed 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.
+ */
+// Demonstrates how to invoke a method on the anchor instance
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;
+
+Policy
+{
+        Declaration
+        {
+            excpectedReturnValue = 10;
+        
+        }
+        Condition
+        {
+            true
+        }
+        Decision
+        { 
+            te.testMethod(1,2) <= 4
+        }
 }:1;

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl Fri Jan 11 10:56:30 2008
@@ -1,62 +1,62 @@
-/*
- * Licensed 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.
- */
-
-
-/* Demonstrates use of Macro statement */
-/* Anchor class declaration */
-Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;  /* Execute all policies */
-Declaration     /* Global Declaration */
-{
-     Macro   /* macro that calculates avrg of 2 nos */
-     {
-             Name = GetAverage; /* Name of the macro */
-             type = Real64; /* Return type */
-             argument = number1:Sint64,number2:Sint64; /* Input parameters and types */
-             procedure = (number1 + number2) / 2 /* Actual code */
-     }
-}
-Policy 
-{
-        Declaration
-        {      /* constants used in t condition */
-                NoToAvrg1 = 8;
-                NoToAvrg2 = 2;
-                TwentyFive = 25;
-        }
-        Condition 
-        {  
-
-                SquareRoot(TwentyFive) == GetAverage(NoToAvrg1,NoToAvrg2) && AnyInCollection(5,"GREATER",[6,7,8])
-        }
-        Decision 
-        {       /* set testElement.s32 to 3 */
-                Set(te.s32 = 4) 
-        }
-        
-}:1;  /* Priority of the policy */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+/*
+ * Licensed 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.
+ */
+
+
+/* Demonstrates use of Macro statement */
+/* Anchor class declaration */
+Import Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;  /* Execute all policies */
+Declaration     /* Global Declaration */
+{
+     Macro   /* macro that calculates avrg of 2 nos */
+     {
+             Name = GetAverage; /* Name of the macro */
+             type = Real64; /* Return type */
+             argument = number1:Sint64,number2:Sint64; /* Input parameters and types */
+             procedure = (number1 + number2) / 2 /* Actual code */
+     }
+}
+Policy 
+{
+        Declaration
+        {      /* constants used in t condition */
+                NoToAvrg1 = 8;
+                NoToAvrg2 = 2;
+                TwentyFive = 25;
+        }
+        Condition 
+        {  
+
+                SquareRoot(TwentyFive) == GetAverage(NoToAvrg1,NoToAvrg2) && AnyInCollection(5,"GREATER",[6,7,8])
+        }
+        Decision 
+        {       /* set testElement.s32 to 3 */
+                Set(te.s32 = 4) 
+        }
+        
+}:1;  /* Priority of the policy */
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl Fri Jan 11 10:56:30 2008
@@ -1,90 +1,90 @@
-/*
- * Licensed 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.
- */
-// Demonstrates how to define multiple sub policies
-
-/* Anchor class declaration */
-Import  Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;  /* Execute all policies */
-Declaration     /* Global Declaration */
-{
-     Macro   /* macro that calculates avrg of 2 nos */
-     {
-             Name = GetAverage;
-             type = Real64;
-             argument = number1:Uint64,number2:Uint64;
-             procedure = (number1 + number2) / 2
-     }
-}
-Policy // Policy 1 
-{
-        Declaration
-        {      /* constants used in t condition */
-                NoToAvrg1 = 8;
-                NoToAvrg2 = 2;
-                TwentyFive = 25;
-        }
-        Condition 
-        {  
-
-                SquareRoot(TwentyFive) == GetAverage(NoToAvrg1,NoToAvrg2)
-        }
-        Decision 
-        {       /* set testElement.s32 to 3 */
-                Set(te.s32 = 3) 
-        }
-        
-}:2;  /* Priority of the policy */
-Policy // Policy 2
-{
-        Declaration
-        {      /* even and odd array constants */
-                evenArray = [0,2,4,6,8];
-                oddArray = [1,3,5,7,9];
-                sumOfnumbersTill9 = 45; 
-                
-                Macro  /* macro to add all elements of passed array */
-                {
-                        Name = Add2Arrays;
-                        type = Uint32;
-                        argument = array1:Uint32[],array2:Uint32[];
-                        procedure =  sum(array1) + sum(array2)
-                
-                }
-        }
-        Condition
-        {
-                Add2Arrays(evenArray,oddArray) == sumOfnumbersTill9
-        
-
-        }
-        Decision 
-        {       /* set testElement.s32 to 3 */
-                Set(te.s32 = 3) 
-        }
-
-}:1;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+/*
+ * Licensed 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.
+ */
+// Demonstrates how to define multiple sub policies
+
+/* Anchor class declaration */
+Import  Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;  /* Execute all policies */
+Declaration     /* Global Declaration */
+{
+     Macro   /* macro that calculates avrg of 2 nos */
+     {
+             Name = GetAverage;
+             type = Real64;
+             argument = number1:Uint64,number2:Uint64;
+             procedure = (number1 + number2) / 2
+     }
+}
+Policy // Policy 1 
+{
+        Declaration
+        {      /* constants used in t condition */
+                NoToAvrg1 = 8;
+                NoToAvrg2 = 2;
+                TwentyFive = 25;
+        }
+        Condition 
+        {  
+
+                SquareRoot(TwentyFive) == GetAverage(NoToAvrg1,NoToAvrg2)
+        }
+        Decision 
+        {       /* set testElement.s32 to 3 */
+                Set(te.s32 = 3) 
+        }
+        
+}:2;  /* Priority of the policy */
+Policy // Policy 2
+{
+        Declaration
+        {      /* even and odd array constants */
+                evenArray = [0,2,4,6,8];
+                oddArray = [1,3,5,7,9];
+                sumOfnumbersTill9 = 45; 
+                
+                Macro  /* macro to add all elements of passed array */
+                {
+                        Name = Add2Arrays;
+                        type = Uint32;
+                        argument = array1:Uint32[],array2:Uint32[];
+                        procedure =  sum(array1) + sum(array2)
+                
+                }
+        }
+        Condition
+        {
+                Add2Arrays(evenArray,oddArray) == sumOfnumbersTill9
+        
+
+        }
+        Decision 
+        {       /* set testElement.s32 to 3 */
+                Set(te.s32 = 3) 
+        }
+
+}:1;
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl Fri Jan 11 10:56:30 2008
@@ -1,46 +1,46 @@
-/*
- * Licensed 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.
- */
-// 
-Import  Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
-Strategy Execute_All_Applicable;
-Policy 
-{
-Declaration
-{
-    four = 4;
-}
-Condition 
-{  
-
-     SquareRoot(16) == four
-}
-Decision 
-{   
-Set(te.s32 = 3) 
-}
-}:1;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+/*
+ * Licensed 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.
+ */
+// 
+Import  Class org.apache.imperius.javaspl.samples.simplepolicies.TestElement:te;
+Strategy Execute_All_Applicable;
+Policy 
+{
+Declaration
+{
+    four = 4;
+}
+Condition 
+{  
+
+     SquareRoot(16) == four
+}
+Decision 
+{   
+Set(te.s32 = 3) 
+}
+}:1;
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat (original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat Fri Jan 11 10:56:30 2008
@@ -1,4 +1,4 @@
-
-echo "Running Test policies..."
-set CP=%ANTLR_HOME%\antlr.jar;..\..\lib\imperius-javaspl-1.0.0.jar;..\..\lib\imperius-splcore-1.0.0.jar;..\..\lib\javaspl-samples-1.0.0.jar
-java -classpath %CP% org.apache.imperius.javaspl.samples.simplepolicies.RunSamples %1
+
+echo "Running Test policies..."
+set CP=%ANTLR_HOME%\antlr.jar;..\..\lib\imperius-javaspl-1.0.0.jar;..\..\lib\imperius-splcore-1.0.0.jar;..\..\lib\javaspl-samples-1.0.0.jar
+java -classpath %CP% org.apache.imperius.javaspl.samples.simplepolicies.RunSamples %1

Propchange: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java (original)
+++ incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java Fri Jan 11 10:56:30 2008
@@ -1,44 +1,44 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
- *
- */
-
-package org.apache.imperius.javaspl.samples.simplepolicies;
-
-public class AnotherClass {
-	public int anotherClassProperty1;
-	public int anotherClassProperty2;
-	public AnotherClass(int a1, int b1)
-	{
-		this.setAnotherClassProperty1(a1);
-		this.setAnotherClassProperty2(b1);
-	}
-	public int getAnotherClassProperty1() {
-		return anotherClassProperty1;
-	}
-	public void setAnotherClassProperty1(int a) {
-		this.anotherClassProperty1 = a;
-	}
-	public int getAnotherClassProperty2() {
-		return anotherClassProperty2;
-	}
-	public void setAnotherClassProperty2(int b) {
-		this.anotherClassProperty2 = b;
-	}
-
-}
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.javaspl.samples.simplepolicies;
+
+public class AnotherClass {
+	public int anotherClassProperty1;
+	public int anotherClassProperty2;
+	public AnotherClass(int a1, int b1)
+	{
+		this.setAnotherClassProperty1(a1);
+		this.setAnotherClassProperty2(b1);
+	}
+	public int getAnotherClassProperty1() {
+		return anotherClassProperty1;
+	}
+	public void setAnotherClassProperty1(int a) {
+		this.anotherClassProperty1 = a;
+	}
+	public int getAnotherClassProperty2() {
+		return anotherClassProperty2;
+	}
+	public void setAnotherClassProperty2(int b) {
+		this.anotherClassProperty2 = b;
+	}
+
+}

Propchange: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java (original)
+++ incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java Fri Jan 11 10:56:30 2008
@@ -1,46 +1,46 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
- *
- */
-
-package org.apache.imperius.javaspl.samples.simplepolicies;
-
-public class EmbeddedClass1 {
-	
-	public String embeddedClassProperty1;
-	public String embeddedClassProperty2;
-	
-	public EmbeddedClass1(String a1, String b1)
-	{
-		embeddedClassProperty1 = a1;
-		embeddedClassProperty2 = b1;
-	}
-	public String getEmbeddedClassProperty1() {
-		return embeddedClassProperty1;
-	}
-	public void setEmbeddedClassProperty1(String a1) {
-		this.embeddedClassProperty1 = a1;
-	}
-	public String getEmbeddedClassProperty2() {
-		return embeddedClassProperty2;
-	}
-	public void setEmbeddedClassProperty2(String b1) {
-		this.embeddedClassProperty2 = b1;
-	}
-
-}
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.javaspl.samples.simplepolicies;
+
+public class EmbeddedClass1 {
+	
+	public String embeddedClassProperty1;
+	public String embeddedClassProperty2;
+	
+	public EmbeddedClass1(String a1, String b1)
+	{
+		embeddedClassProperty1 = a1;
+		embeddedClassProperty2 = b1;
+	}
+	public String getEmbeddedClassProperty1() {
+		return embeddedClassProperty1;
+	}
+	public void setEmbeddedClassProperty1(String a1) {
+		this.embeddedClassProperty1 = a1;
+	}
+	public String getEmbeddedClassProperty2() {
+		return embeddedClassProperty2;
+	}
+	public void setEmbeddedClassProperty2(String b1) {
+		this.embeddedClassProperty2 = b1;
+	}
+
+}

Propchange: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java (original)
+++ incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java Fri Jan 11 10:56:30 2008
@@ -1,45 +1,45 @@
-/*
- * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
- *
- */
-
-package org.apache.imperius.javaspl.samples.simplepolicies;
-
-public class SampleClass {
-	public int sampleClassProperty1;
-	public int sampleClassProperty2;
-	public EmbeddedClass1 ec = new EmbeddedClass1("ec1","ec2");
-	public SampleClass(int a1, int b1)
-	{
-		sampleClassProperty1 = a1;
-		sampleClassProperty2 = b1;
-	}
-	public int getSampleClassProperty1() {
-		return sampleClassProperty1;
-	}
-	public void setSampleClassProperty1(int a) {
-		this.sampleClassProperty1 = a;
-	}
-	public int getSampleClassProperty2() {
-		return sampleClassProperty2;
-	}
-	public void setSampleClassProperty2(int b) {
-		this.sampleClassProperty2 = b;
-	}
-
-}
+/*
+ * Licensed 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 Prashant Baliga <pr...@in.ibm.com>
+ *
+ */
+
+package org.apache.imperius.javaspl.samples.simplepolicies;
+
+public class SampleClass {
+	public int sampleClassProperty1;
+	public int sampleClassProperty2;
+	public EmbeddedClass1 ec = new EmbeddedClass1("ec1","ec2");
+	public SampleClass(int a1, int b1)
+	{
+		sampleClassProperty1 = a1;
+		sampleClassProperty2 = b1;
+	}
+	public int getSampleClassProperty1() {
+		return sampleClassProperty1;
+	}
+	public void setSampleClassProperty1(int a) {
+		this.sampleClassProperty1 = a;
+	}
+	public int getSampleClassProperty2() {
+		return sampleClassProperty2;
+	}
+	public void setSampleClassProperty2(int b) {
+		this.sampleClassProperty2 = b;
+	}
+
+}

Propchange: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java (original)
+++ incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java Fri Jan 11 10:56:30 2008
@@ -1,61 +1,61 @@
-/*
- * Licensed 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.
- */
-package org.apache.imperius.javaspl.samples.simplepolicies;
-
-import java.util.Calendar;
-import java.util.GregorianCalendar;
-
-public class TestElement 
-{
-	public String ElementName;
-
-	public String s; 
-	public char c;
-	public double r64;
-	public float r32;
-	public Calendar d;
-	public long s64;
-	public int s32;
-	public short s16;
-	public byte s8;
-	public boolean b;
-
-	public String childProperty;
-    
-    public int testMethod(int a, int b)
-    {
-    	return a + b;
-    }
-    
-    public TestElement()
-    {
-    	ElementName = "Element1";
-
-    	s="string5"; 
-    	c='d';
-       	r64=54.0;
-    	r32=54.0f;
-    	d= new GregorianCalendar();
-    	s64=-530;
-    	s32=-530;
-    	s16=-50;
-    	s8=-10;
-    	b=false;
-    	childProperty="child property5";
-
-    	
-    }
-
-
-}
+/*
+ * Licensed 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.
+ */
+package org.apache.imperius.javaspl.samples.simplepolicies;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+public class TestElement 
+{
+	public String ElementName;
+
+	public String s; 
+	public char c;
+	public double r64;
+	public float r32;
+	public Calendar d;
+	public long s64;
+	public int s32;
+	public short s16;
+	public byte s8;
+	public boolean b;
+
+	public String childProperty;
+    
+    public int testMethod(int a, int b)
+    {
+    	return a + b;
+    }
+    
+    public TestElement()
+    {
+    	ElementName = "Element1";
+
+    	s="string5"; 
+    	c='d';
+       	r64=54.0;
+    	r32=54.0f;
+    	d= new GregorianCalendar();
+    	s64=-530;
+    	s32=-530;
+    	s16=-50;
+    	s8=-10;
+    	b=false;
+    	childProperty="child property5";
+
+    	
+    }
+
+
+}

Propchange: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
------------------------------------------------------------------------------
    svn:eol-style = native