Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion core/camel-core-languages/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,36 @@

<properties>
<camel.osgi.export>
org.apache.camel*;version=${camel-version}
org.apache.camel.language*;version=${camel-version}
</camel.osgi.export>
<camel.osgi.import>
*
</camel.osgi.import>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-api</artifactId>
<version>${camel-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.camel</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-support</artifactId>
<version>${camel-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.camel</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-languages</artifactId>
Expand Down Expand Up @@ -78,6 +100,12 @@
<include>org.apache.camel:camel-core-languages</include>
</includes>
</artifactSet>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<resource>META-INF/services/org/apache/camel/language/simple-no-file</resource>
<file>${project.basedir}/src/main/resources/META-INF/services/org/apache/camel/language/simple-no-file</file>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.language.simple;

import org.apache.camel.spi.annotations.Language;

/**
* The {@link SimpleLanguage} but without support for using the file based functions. This is used in some special
* situations with EIPs such as poll/pollEnrich. This language is not exposed as a public standard language and are only
* intended for internal use.
*/
@Language(value = "simple-no-file", functionsClass = SimpleConstants.class)
public final class SimpleNoFileLanguage extends SimpleLanguage {

public SimpleNoFileLanguage() {
super(true);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class=org.apache.camel.language.simple.SimpleNoFileLanguage