Skip to content
hash

GitHub Action

Sharpen docker action

v1.1.1 Latest version

Sharpen docker action

hash

Sharpen docker action

Conversion from Java to C# using mono/sharpen converter

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sharpen docker action

uses: javiertuya/sharpen-action@v1.1.1

Learn more about this action in javiertuya/sharpen-action

Choose a version

Sharpen docker action

This docker container action converts java to C# using the Sharpen converter.

Inputs

  • working-dir: Directory from which sharpen will be run. Default is the current directory.
  • project-dir: Required. Directory that contains the java source code to be converted.
  • sharpen-args: Additional arguments to be passed to sharpen.

Example usage

uses: javiertuya/sharpen-action@main
with:
  project-dir: 'src/main/java'
  sharpen-args: '@sharpen-all-options.txt'

Will produce the converted code in src/main/main.net. The options file @sharpen-all-options.txt passed as argument specifies the conversion configuration:

-flatDirectoryStructure
-pascalCase+ 
-organizeUsings 
-nativeTypeSystem 
-separateInterfaceConstants 
-maxColumns 280