Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this work under ubuntu? #1

Open
victoralex opened this issue Jun 30, 2015 · 20 comments
Open

does this work under ubuntu? #1

victoralex opened this issue Jun 30, 2015 · 20 comments

Comments

@victoralex
Copy link

it seems to work only under windows

@victoralex victoralex changed the title does this work in ubuntu? does this work under ubuntu? Jun 30, 2015
@albertjuhe
Copy link
Owner

Yes, this program has been developed in Java, the java language is multyplatform, works in windows and in linux.
The most important think is that you have to have a Java 1.6 or higher. Another think is that you need to correct the documents path in the XML file files and write it in linux format.

@victoralex
Copy link
Author

I've tried changing the paths in the xml config and into https://github.com/albertjuhe/camaleonX/blob/master/camaleonx.properties but it still tries with windows path separators "" instead of unix "/"

@albertjuhe
Copy link
Owner

OK, let me try in a ubuntu so.

@albertjuhe
Copy link
Owner

Yes, I tried in an Ubuntu SO and this is a bug. Now ,only works in windows.
I correct this bug.

@victoralex
Copy link
Author

Hi Albert,

Thank you for this. Do you know when i may be able to test it again on ubuntu?

Regards,

Victor

On July 3, 2015 at 14:12:07, Albert Juhe Brugué (notifications@github.com) wrote:

Yes, I tried in an Ubuntu SO and this is a bug. Now ,only works in windows.
I correct this bug.


Reply to this email directly or view it on GitHub.

@albertjuhe
Copy link
Owner

Yes, I will try to do that Monday.

2015-07-03 13:26 GMT+02:00 victoralex notifications@github.com:

Hi Albert,

Thank you for this. Do you know when i may be able to test it again on
ubuntu?

Regards,

Victor Popescu
0040 722 244 241
eMotion Concept LTD
www.emotionconcept.ro

On July 3, 2015 at 14:12:07, Albert Juhe Brugué (notifications@github.com)
wrote:

Yes, I tried in an Ubuntu SO and this is a bug. Now ,only works in windows.
I correct this bug.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment).

@victoralex
Copy link
Author

Yes, I will try to do that Monday.

@albertjuhe
Copy link
Owner

I've uploaded a new version with this path correction.
I've been testing the aplication in an Ubuntu SO, and works.

@victoralex
Copy link
Author

great stuff :) will test it asap

@victoralex
Copy link
Author

java -jar camaleonx.jar -U ./camaleonx.properties ./docx_merge_sample.xml -Xms256m -Xmx1024m -Dlog4j.configuration=./logs/camaleonx.log4j.xml -Dlog4j.debug=false -Dcamaleonx.local./home=logs

Reading config file: ./camaleonx.properties
CamaleonX v.0.1 Command line execution.
Processing ./docx_merge_sample.xml...
log4j:WARN No appenders could be found for logger (omaonk.xml.profile).
log4j:WARN Please initialize the log4j system properly.
Start merging [Docx]...
[Docx docx_merge_sample] Number of documents to merge: 2
[Docx docx_merge_sample] Start merging...
[Docx docx_merge_sample] Current document number: 1
[Docx docx_merge_sample] Merging: /Users/victorpopescu/Seeds/versions/1/components/camaleonX/./documents/1.docx
[Docx docx_merge_sample] Merge OK.
[Docx docx_merge_sample] Current document number: 2
[Docx docx_merge_sample] Merging: /Users/victorpopescu/Seeds/versions/1/components/camaleonX/./documents/2.docx
File : /Users/victorpopescu/Seeds/versions/1/components/camaleonX/./resources/tmp/docx_merge_sample\file1\ doesn't
[Docx docx_merge_sample] Merge Error.
[Docx docx_merge_sample] Removing temporal files./Users/victorpopescu/Seeds/versions/1/components/camaleonX/./resources/tmp/docx_merge_sample
[Docx docx_merge_sample] Error merging KO.
[Docx docx_merge_sample] Merge Report:
[Docx docx_merge_sample] Total merge time:00h 00m 00s 51ms, 2 documents merged.
[Docx docx_merge_sample] Merge ended DOCX'.
[Docx docx_merge_sample] Result file in:

@victoralex
Copy link
Author

here is my camaleonx.properties file:

base=./resources/files/
results=./results/

#xsl docx path
app=./resources/
tmp=tmp/
xsl=xsl/
skeleton=skeleton/

tmp_pptx=tmp/
skeleton_pptx=skeleton_pptx/
xsl_pptx=xsl_pptx/

#Templates
templates=templates/

and my docx_merge_sample.xml:

</contents>

@victoralex
Copy link
Author

i'm still getting trailing "/" using the latest version. i am using an osx

14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

@albertjuhe
Copy link
Owner

Can you show me the camaleonX.properties file?

@victoralex
Copy link
Author

On August 12, 2015 at 10:32:36, Albert Juhe Brugué (notifications@github.com) wrote:

Can you show me the camaleonX.properties file?


Reply to this email directly or view it on GitHub.

@chromakey
Copy link

Chiming in that I'm experience the same issue on OSX. Here's my input/output after updating the properties file:

camaleonX master % java -jar camaleonx.jar -U camaleonx.properties docx_merge_sample.xml -Xms1024m -Xmx1024m -Dlog4j.configuration=file:/./logs/camaleonx.log4j.xml -Dlog4j.debug=true -Dcamaleonx.local./home=logs

Reading config file: camaleonx.properties
CamaleonX v.0.1 Command line execution.
Processing docx_merge_sample.xml...
log4j:WARN No appenders could be found for logger (omaonk.xml.profile).
log4j:WARN Please initialize the log4j system properly.
Start merging [Docx]...
[Docx docx_merge_sample] Number of documents to merge: 2
[Docx docx_merge_sample]  Start merging... 
[Docx docx_merge_sample] Current document number: 1
[Docx docx_merge_sample] Merging: /Users/chromakey/projects/camaleonX/documents/1.docx
[Docx docx_merge_sample] Merge OK.
[Docx docx_merge_sample] Current document number: 2
[Docx docx_merge_sample] Merging: /Users/chromakey/projects/camaleonX/documents/2.docx
File : /Users/chromakey/projects/camaleonX/resources/Users/chromakey/projects/camaleonX/tmp/docx_merge_sample\\file1\ doesn't
[Docx docx_merge_sample] Merge Error.
[Docx docx_merge_sample] Removing temporal files./Users/chromakey/projects/camaleonX/resources/Users/chromakey/projects/camaleonX/tmp/docx_merge_sample\
[Docx docx_merge_sample] Error merging KO.
[Docx docx_merge_sample] Merge Report:  
[Docx docx_merge_sample] Total merge time:00h 00m 00s 47ms, 2 documents merged.
[Docx docx_merge_sample] Merge ended DOCX'.
[Docx docx_merge_sample] Result file in: 

@victoralex
Copy link
Author

so this is an osx issue? haven't tested on linux yet. Perhaps it will work on ubuntu directly. gonna try tomorrow

@chromakey
Copy link

I just ran it on an ubuntu server, same issue:

ubuntu@ip-172-31-13-254:~/camaleonX$ java -jar camaleonx.jar -U camaleonx.properties docx_merge_sample.xml -Xms1024m -Xmx1024m -Dlog4j.configuration=file:/./logs/camaleonx.log4j.xml -Dlog4j.debug=true -Dcamaleonx.local./home=logs
Reading config file: camaleonx.properties
CamaleonX v.0.1 Command line execution.
Processing docx_merge_sample.xml...
log4j:WARN No appenders could be found for logger (omaonk.xml.profile).
log4j:WARN Please initialize the log4j system properly.
Start merging [Docx]...
[Docx docx_merge_sample] Number of documents to merge: 2
[Docx docx_merge_sample]  Start merging... 
[Docx docx_merge_sample] Current document number: 1
[Docx docx_merge_sample] Merging: /home/ubuntu/camaleonX/./documents/1.docx
[Docx docx_merge_sample] Merge OK.
[Docx docx_merge_sample] Current document number: 2
[Docx docx_merge_sample] Merging: /home/ubuntu/camaleonX/./documents/2.docx
File : /home/ubuntu/camaleonX/./camaleonx/resources/./tmp/docx_merge_sample\\file1\ doesn't
[Docx docx_merge_sample] Merge Error.
[Docx docx_merge_sample] Removing temporal files./home/ubuntu/camaleonX/./camaleonx/resources/./tmp/docx_merge_sample\
[Docx docx_merge_sample] Error merging KO.
[Docx docx_merge_sample] Merge Report:  
[Docx docx_merge_sample] Total merge time:00h 00m 00s 37ms, 2 documents merged.
[Docx docx_merge_sample] Merge ended DOCX'.
[Docx docx_merge_sample] Result file in: 

@albertjuhe
Copy link
Owner

I'm installing virtual Box, I have a snowleopart image, I will try over this osx.

@victoralex
Copy link
Author

any luck?

@albertjuhe
Copy link
Owner

I can't install osx in the virtualbox, doesen't work.
In the ubuntu works.
ubuntu

I will recompile again the project and I will upload, because I dont understand the error.
The error with the slash changed, appear with file.getAbsolutePath(), has no sense, because this take the path from a file directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants