Code Monkey home page Code Monkey logo

uad-poc's Introduction

POC to convert the XML based output from the Liferay DXP UAD tool to CSV. A single CSV file will be generated per Model or per Liferay Object definition based on the source files.

POC was built and tested with JDK 1.8 on Windows 10. It uses a Gradle based Liferay Workspace but has no dependencies on the Liferay DXP product, so the Liferay DXP version specified in gradle.properties > liferay.workspace.product is not important.

Prerequisites:

Java 1.8 or later.

Steps to run (with a compiled XML-to-CSV-converter-1.0.0.jar): 

1. Generate and download the UAD zip file(s) from the Liferay DXP environment.
2. Extract the zip file(s).
3. Run the code with the following command (with appropriate arguments) from the folder containing the XML-to-CSV-converter-1.0.0.jar JAR file:

java -cp XML-to-CSV-converter-1.0.0.jar com.mw.uad.XMLToCSV [arg_source_folder] [arg_output_folder] [arg_debug_logging]

For example:

java -cp XML-to-CSV-converter-1.0.0.jar com.mw.uad.XMLToCSV C:\mw_temp\source\ C:\mw_temp\output\ true

java -cp XML-to-CSV-converter-1.0.0.jar com.mw.uad.XMLToCSV C:\mw_temp\source\ C:\mw_temp\output\ false

where:

[arg_source_folder] is the folder containing the extracted zip file(s).
[arg_output_folder] is the folder that the generated CSV file(s) are written to.
[arg_debug_logging] is a boolean that determines if the debug logging is generated.

Note that both folders must already exist, be accessible to the java process, must not contain spaces and the arguments must end in the \ character.

4. The CSV file(s) will be created in the [output_folder] and a summary will be displayed e.g.

Done... 1553 XML files merged into 31 CSV files.

uad-poc's People

Watchers

Michael Wall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.