camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r1477695 - in /camel/branches/camel-2.10.x/components: ./ camel-ical/ camel-ical/src/ camel-ical/src/main/ camel-ical/src/main/java/ camel-ical/src/main/java/org/ camel-ical/src/main/java/org/apache/ camel-ical/src/main/java/org/apache/came...
Date Tue, 30 Apr 2013 15:43:40 GMT
Author: hadrian
Date: Tue Apr 30 15:43:39 2013
New Revision: 1477695

URL: http://svn.apache.org/r1477695
Log:
CAMEL-6320. Add support for ical data format

Added:
    camel/branches/camel-2.10.x/components/camel-ical/
    camel/branches/camel-2.10.x/components/camel-ical/pom.xml   (with props)
    camel/branches/camel-2.10.x/components/camel-ical/src/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java
  (with props)
    camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
  (with props)
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/
    camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/ical
    camel/branches/camel-2.10.x/components/camel-ical/src/test/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
  (with props)
    camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/
    camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/data.ics
    camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/ical4j.properties
    camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/log4j.properties
Modified:
    camel/branches/camel-2.10.x/components/pom.xml

Added: camel/branches/camel-2.10.x/components/camel-ical/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/pom.xml?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/pom.xml (added)
+++ camel/branches/camel-2.10.x/components/camel-ical/pom.xml Tue Apr 30 15:43:39 2013
@@ -0,0 +1,54 @@
+<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/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>components</artifactId>
+    <version>2.12-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>camel-ical</artifactId>
+  <packaging>bundle</packaging>
+  <name>Camel :: iCal</name>
+  <description>Camel iCal component</description>
+
+  <properties>
+    <camel.osgi.import>
+      !org.apache.camel.ical.*,
+      net.fortuna.ical.*,
+      ${camel.osgi.import.defaults},
+      *
+    </camel.osgi.import>
+    <camel.osgi.export.pkg>
+      org.apache.camel.component.ical.*;${camel.osgi.version}
+    </camel.osgi.export.pkg>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.mnode.ical4j</groupId>
+      <artifactId>ical4j</artifactId>
+      <version>1.0.4</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-test</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: camel/branches/camel-2.10.x/components/camel-ical/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ */
+package org.apache.camel.component.ical;
+
+import java.io.ByteArrayInputStream;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+
+import net.fortuna.ical4j.model.Calendar;
+import net.fortuna.ical4j.model.property.DateProperty;
+
+import org.apache.camel.Converter;
+import org.apache.camel.Exchange;
+import org.apache.camel.util.IOHelper;
+
+/**
+ * ICal related converter.
+ */
+@Converter
+public class ICalConverter {
+
+    @Converter
+    public static Date toDate(DateProperty property) {
+        return property.getDate();
+    }
+
+    @Converter
+    public static ByteArrayInputStream toStream(Calendar calendar, Exchange exchange) throws
UnsupportedEncodingException {
+        return new ByteArrayInputStream(calendar.toString().getBytes(IOHelper.getCharsetName(exchange)));
+    }
+
+}

Propchange: camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalConverter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,75 @@
+/*
+ * 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.
+ */
+package org.apache.camel.component.ical;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import net.fortuna.ical4j.data.CalendarBuilder;
+import net.fortuna.ical4j.data.CalendarOutputter;
+import net.fortuna.ical4j.model.Calendar;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.spi.DataFormat;
+
+/**
+ * Bridge ICal data format to camel world.
+ */
+public class ICalDataFormat implements DataFormat {
+
+    /**
+     * Class responsible for writing out calendar instances.
+     */
+    private CalendarOutputter outputer = new CalendarOutputter();
+    private CalendarBuilder builder = new CalendarBuilder();
+
+    public void setValidating(boolean validate) {
+        outputer.setValidating(validate);
+    }
+
+    public boolean isValidating() {
+        return outputer.isValidating();
+    }
+
+    public CalendarOutputter getOutputer() {
+        return outputer;
+    }
+
+    public void setOutputer(CalendarOutputter outputer) {
+        this.outputer = outputer;
+    }
+
+    public CalendarBuilder getBuilder() {
+        return builder;
+    }
+
+    public void setBuilder(CalendarBuilder builder) {
+        this.builder = builder;
+    }
+
+    @Override
+    public void marshal(Exchange exchange, Object graph, OutputStream stream) throws Exception
{
+        Calendar calendar = exchange.getContext().getTypeConverter().convertTo(Calendar.class,
graph);
+        outputer.output(calendar, stream);
+    }
+
+    @Override
+    public Object unmarshal(Exchange exchange, InputStream stream) throws Exception {
+        return builder.build(stream);
+    }
+
+}

Propchange: camel/branches/camel-2.10.x/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/TypeConverter?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+org.apache.camel.component.ical.ICalConverter
\ No newline at end of file

Added: camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/ical
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/ical?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/ical
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/main/resources/META-INF/services/org/apache/camel/dataformat/ical
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.camel.component.ical.ICalDataFormat
\ No newline at end of file

Added: camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,162 @@
+/*
+ * 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.
+ */
+package org.apache.camel.component.ical;
+
+import java.io.File;
+import java.io.InputStream;
+import java.net.URI;
+import java.text.ParseException;
+import java.util.GregorianCalendar;
+
+import net.fortuna.ical4j.model.Calendar;
+import net.fortuna.ical4j.model.DateTime;
+import net.fortuna.ical4j.model.PropertyList;
+import net.fortuna.ical4j.model.TimeZone;
+import net.fortuna.ical4j.model.TimeZoneRegistry;
+import net.fortuna.ical4j.model.TimeZoneRegistryFactory;
+import net.fortuna.ical4j.model.component.VEvent;
+import net.fortuna.ical4j.model.component.VTimeZone;
+import net.fortuna.ical4j.model.parameter.Cn;
+import net.fortuna.ical4j.model.parameter.Role;
+import net.fortuna.ical4j.model.property.Attendee;
+import net.fortuna.ical4j.model.property.CalScale;
+import net.fortuna.ical4j.model.property.DtEnd;
+import net.fortuna.ical4j.model.property.DtStamp;
+import net.fortuna.ical4j.model.property.DtStart;
+import net.fortuna.ical4j.model.property.ProdId;
+import net.fortuna.ical4j.model.property.Summary;
+import net.fortuna.ical4j.model.property.Uid;
+import net.fortuna.ical4j.model.property.Version;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.converter.IOConverter;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+/**
+ * Small unit test which verifies ical data format.
+ */
+public class ICalDataFormatTest extends CamelTestSupport {
+
+    @Test
+    public void testUnmarshal() throws Exception {
+        InputStream stream = IOConverter.toInputStream(new File("src/test/resources/data.ics"));
+        MockEndpoint endpoint = getMockEndpoint("mock:result");
+
+        endpoint.expectedBodiesReceived(createTestCalendar());
+
+        template.sendBody("direct:unmarshal", stream);
+
+        endpoint.assertIsSatisfied();
+    }
+
+    @Test
+    public void testMarshal() throws Exception {
+        Calendar testCalendar = createTestCalendar();
+        MockEndpoint endpoint = getMockEndpoint("mock:result");
+
+        endpoint.expectedBodiesReceived(testCalendar.toString());
+
+        template.sendBody("direct:marshal", testCalendar);
+
+        endpoint.assertIsSatisfied();
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                from("direct:unmarshal")
+                    .unmarshal("ical")
+                    .to("mock:result");
+                from("direct:marshal")
+                    .marshal("ical")
+                    .to("mock:result");
+            }
+        };
+    }
+
+    /**
+     * Creates test calendar instance.
+     * 
+     * @return ICal calendar object.
+     */
+    protected Calendar createTestCalendar() throws ParseException {
+     // Create a TimeZone
+        TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
+        TimeZone timezone = registry.getTimeZone("America/New_York");
+        VTimeZone tz = timezone.getVTimeZone();
+
+         // Start Date is on: April 1, 2013, 9:00 am
+        java.util.Calendar startDate = new GregorianCalendar();
+        startDate.setTimeZone(timezone);
+        startDate.set(java.util.Calendar.MONTH, java.util.Calendar.APRIL);
+        startDate.set(java.util.Calendar.DAY_OF_MONTH, 1);
+        startDate.set(java.util.Calendar.YEAR, 2013);
+        startDate.set(java.util.Calendar.HOUR_OF_DAY, 17);
+        startDate.set(java.util.Calendar.MINUTE, 0);
+        startDate.set(java.util.Calendar.SECOND, 0);
+
+         // End Date is on: April 1, 2013, 13:00
+        java.util.Calendar endDate = new GregorianCalendar();
+        endDate.setTimeZone(timezone);
+        endDate.set(java.util.Calendar.MONTH, java.util.Calendar.APRIL);
+        endDate.set(java.util.Calendar.DAY_OF_MONTH, 1);
+        endDate.set(java.util.Calendar.YEAR, 2013);
+        endDate.set(java.util.Calendar.HOUR_OF_DAY, 21);
+        endDate.set(java.util.Calendar.MINUTE, 0);  
+        endDate.set(java.util.Calendar.SECOND, 0);
+
+        // Create the event
+        PropertyList propertyList = new PropertyList();
+        propertyList.add(new DtStamp("20130324T180000Z"));
+        propertyList.add(new DtStart(new DateTime(startDate.getTime())));
+        propertyList.add(new DtEnd(new DateTime(endDate.getTime())));
+        propertyList.add(new Summary("Progress Meeting"));
+        VEvent meeting = new VEvent(propertyList);
+
+        // add timezone info..
+        meeting.getProperties().add(tz.getTimeZoneId());
+
+        // generate unique identifier..
+        meeting.getProperties().add(new Uid("00000000"));
+
+        // add attendees..
+        Attendee dev1 = new Attendee(URI.create("mailto:dev1@mycompany.com"));
+        dev1.getParameters().add(Role.REQ_PARTICIPANT);
+        dev1.getParameters().add(new Cn("Developer 1"));
+        meeting.getProperties().add(dev1);
+
+        Attendee dev2 = new Attendee(URI.create("mailto:dev2@mycompany.com"));
+        dev2.getParameters().add(Role.OPT_PARTICIPANT);
+        dev2.getParameters().add(new Cn("Developer 2"));
+        meeting.getProperties().add(dev2);
+
+        // Create a calendar
+        net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
+        icsCalendar.getProperties().add(Version.VERSION_2_0);
+        icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
+        icsCalendar.getProperties().add(CalScale.GREGORIAN);
+
+        // Add the event and print
+        icsCalendar.getComponents().add(meeting);
+        return icsCalendar;
+    }
+
+}

Propchange: camel/branches/camel-2.10.x/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/data.ics
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/data.ics?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/data.ics (added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/data.ics Tue Apr
30 15:43:39 2013
@@ -0,0 +1,15 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Events Calendar//iCal4j 1.0//EN
+CALSCALE:GREGORIAN
+BEGIN:VEVENT
+DTSTAMP:20130324T180000Z
+DTSTART:20130401T170000
+DTEND:20130401T210000
+SUMMARY:Progress Meeting
+TZID:America/New_York
+UID:00000000
+ATTENDEE;ROLE=REQ-PARTICIPANT;CN=Developer 1:mailto:dev1@mycompany.com
+ATTENDEE;ROLE=OPT-PARTICIPANT;CN=Developer 2:mailto:dev2@mycompany.com
+END:VEVENT
+END:VCALENDAR

Added: camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/ical4j.properties
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/ical4j.properties?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/ical4j.properties
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/ical4j.properties
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,19 @@
+##  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.
+
+ical4j.unfolding.relaxed=true
+ical4j.parsing.relaxed=true
+ical4j.validation.relaxed=true
+net.fortuna.ical4j.timezone.registry=org.osaf.cosmo.calendar.CosmoTimeZoneRegistryFactory

Added: camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/log4j.properties?rev=1477695&view=auto
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/log4j.properties
(added)
+++ camel/branches/camel-2.10.x/components/camel-ical/src/test/resources/log4j.properties
Tue Apr 30 15:43:39 2013
@@ -0,0 +1,40 @@
+## ------------------------------------------------------------------------
+## 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.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see debug output on the console.
+#
+log4j.rootLogger=INFO, file
+
+#log4j.logger.org.apache.activemq=DEBUG
+#log4j.logger.org.apache.camel=DEBUG
+#log4j.logger.org.apache.camel.component.ical=DEBUG
+
+log4j.logger.org.apache.camel.impl.converter=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.file.file=target/camel-ical-test.log
+log4j.appender.file.append=true

Modified: camel/branches/camel-2.10.x/components/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/pom.xml?rev=1477695&r1=1477694&r2=1477695&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/pom.xml (original)
+++ camel/branches/camel-2.10.x/components/pom.xml Tue Apr 30 15:43:39 2013
@@ -89,6 +89,7 @@
     <module>camel-hdfs</module>
     <module>camel-hl7</module>
     <module>camel-ibatis</module>
+    <module>camel-ical</module>
     <module>camel-irc</module>
     <module>camel-jackson</module>
     <module>camel-javaspace</module>



Mime
View raw message