Thanks to visit codestin.com
Credit goes to github.com

Skip to content

javiertuya/sharpen-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharpen docker action

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

NOTICE: I have replaced the use converter by JavaToCSharp which although it is a syntactic converter, is simpler to configure and not constrained by the Java 7 syntax. The below projects are already converted:

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 

About

Conversion from Java to C# using mono/sharpen

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •