Skip to content

Commit

Permalink
updated to 0.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
jcastro committed Mar 10, 2023
1 parent 48e4d10 commit 04dfc47
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
Binary file removed dist/camel-xml2dsl-0.0.24.tar.gz
Binary file not shown.
Binary file removed dist/camel_xml2dsl-0.0.24-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = camel-xml2dsl
version = 0.0.24
version = 0.0.25
author = Jorge Castro
author_email = [email protected]
description = xml definition to dsl definition routes
Expand Down
25 changes: 22 additions & 3 deletions src/camel_xml2dsl.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
Metadata-Version: 2.1
Name: camel-xml2dsl
Version: 0.0.24
Version: 0.0.25
Summary: xml definition to dsl definition routes
Home-page: https://github.com/jorgecastro05/script-aro.git
Author: Jorge Castro
Author-email: [email protected]
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/jorgecastro05/script-aro.git
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Expand Down Expand Up @@ -40,5 +38,26 @@ build and install

python -m build && pip install dist/camel_xml2dsl-0.0.1-py3-none-any.whl --force-reinstall

### Docker run

A dockerfile is provided for creating the app container image, can be used with docker or podman.

Example with podman:

podman build -t xml2dsl .

Example with docker

docker build -t xml2dsl .

For run the app mount a volume where the xml is located and run the container in interactive mode:

podman run --privileged -it -v /home/user/Downloads/:/app:ro xml2dsl:latest /bin/bash

docker run -it -v /home/user/Downloads/:/app:ro xml2dsl:latest /bin/bash


Then run the utility

xml2dsl --xml context.xml

3 changes: 2 additions & 1 deletion src/camel_xml2dsl.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ src/camel_xml2dsl.egg-info/entry_points.txt
src/camel_xml2dsl.egg-info/requires.txt
src/camel_xml2dsl.egg-info/top_level.txt
src/xml2dsl/__init__.py
src/xml2dsl/xml2dsl.py
src/xml2dsl/xml2dsl.py
tests/test_xml2dsl.py
5 changes: 2 additions & 3 deletions tests/camel-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
<setProperty id="_setProperty2" propertyName="bodySql">
<simple>${body[0]}</simple>
</setProperty>
<setExchangePattern pattern=""
<setBody id="_setBody1">
<simple>${header.unmarshall}</simple>
</setBody>
Expand Down Expand Up @@ -187,10 +186,10 @@
<from uri="direct:do-try-test"/>
<doTry>
<doTry>
<throwException id="throwException1"/>
<throwException id="throwException1" message="Forced" exceptionType="java.lang.IllegalArgumentException"/>
<doCatch id="doCatch1">
<log id="log1" message="doCatch 1"/>
<throwException id="throwException2"/>
<throwException id="throwException2" message="Forced" exceptionType="java.lang.IllegalArgumentException"/>
</doCatch>
</doTry>
<doCatch id="doCatch2">
Expand Down

0 comments on commit 04dfc47

Please sign in to comment.