albertjuhe / camaleonX

Merge Microsoft office documents (docx and pptx) in one document. Command line tool.
www.fados-produccions.com
Other
8 stars 1 forks source link

does this work under ubuntu? #1

Open victoralex opened 9 years ago

victoralex commented 9 years ago

it seems to work only under windows

albertjuhe commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

OK, let me try in a ubuntu so.

albertjuhe commented 9 years ago

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

victoralex commented 9 years ago

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 commented 9 years ago

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 https://github.com/albertjuhe/camaleonX/issues/1#issuecomment-118321020.

victoralex commented 9 years ago

Yes, I will try to do that Monday.

albertjuhe commented 9 years ago

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

victoralex commented 9 years ago

great stuff :) will test it asap

victoralex commented 9 years ago

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 commented 9 years ago

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:

<?xml version="1.0" encoding="UTF-8" ?>

``` ```
victoralex commented 9 years ago

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 commented 9 years ago

Can you show me the camaleonX.properties file?

victoralex commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

chromakey commented 9 years ago

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 commented 9 years ago

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

victoralex commented 9 years ago

any luck?

albertjuhe commented 9 years ago

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.