ydanila / sharpen_imazen_config

This repository contains separate config project for the sharpen_imazen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How does it work?

lazydino opened this issue · comments

Hi, I am trying to build a example with custom configuration class for sharpen java-C# translator with https://github.com/ydanila/sharpen_imazen .

I tested both Ubuntu 14.04 and Windows 10 all with JDK 1.7 and maven 3.3.9. and have not been able to figure out how to get the custom external configuration class work. Here are my steps..

  1. Clone sharpen from https://github.com/ydanila/sharpen_imazen
    do "mvn clean test" and "mvn install", Copy sharpen\src\target\sharpencore-0.0.1-SNAPSHOT-jar-with-dependencies.jar to ..\sharp_cli and renamed it to sharpen-jar-with-dependencies.jar
  2. Clone custom configuration from https://github.com/ydanila/sharpen_imazen_config.git and run "mvn install"
  3. Clone XMPP as testing source from https://github.com/ydanila/n-metadata-extractor.git , check out the "xmp-core" branch copy the jar file generated by (2) at \sharpen_imazen_config\sharpen.config\target\MEConfiguration.sharpenconfig.jar to the root of the XMPP port project root.
  4. I first try java -jar sharpen-jar-with-dependencies.jar src/ It works and generate C# file underneath src.net/ Next I try run with the batch sharpen_cli.bat file that loads the custom configuration specified in sharpen-all-options, it just complains jar file could not be found.

Configuration library MEConfiguration.sharpenconfig.jar not found

The sharpen_cli.bat batch file of n-metadata-extractor issues this command in Windows.
java -jar ..\sharpen_cli\sharpen-jar-with-dependencies.jar src/ @sharpen-all-options, and I have copied the jar file. What went wrong?

My directory structure.

/sharpen_cli -- sharpen-jar-with-dependencies.jar
/n-metadata-extractor -- sharpen_cli.bat and MEConfiguration.sharpenconfig.jar

I tried to patch the bat file with -cp MEConfiguration.sharpenconfig.jar It does not work.