Top Description Fields Constructors Methods
org.testng

public Class Converter

extends Object
Class Inheritance
Imports
com.beust.jcommander.JCommander, .Parameter, .ParameterException, java.io.File, .FileWriter, .IOException, java.util.Collection, .Collections, .List, .Set, org.testng.collections.Sets, org.testng.internal.Yaml, org.testng.xml.XmlSuite, org.testng.xml.internal.Parser

Convert XML files to YAML and vice versa.
Author
cbeust

Field Summary

Modifier and TypeField and Description
private List<String>
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public static void
main(String[] args)

private void
run(String[] args)

private void
writeFile(File newFile, String content)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_filesback to summary
private List<String> m_files
Annotations
@Parameter
description:file1 [file2 file3...]
required:true
m_outputDirectoryback to summary
private String m_outputDirectory
Annotations
@Parameter
names:-d
description:The directory where the file(s) will be created

Constructor Detail

Converterback to summary
public Converter()

Method Detail

findAllSuitesback to summary
private void findAllSuites(Collection<XmlSuite> suites, Set<XmlSuite> result)
mainback to summary
public static void main(String[] args) throws IOException
runback to summary
private void run(String[] args) throws IOException
writeFileback to summary
private void writeFile(File newFile, String content) throws IOException