Documentation ¶
Index ¶
- func ConvertPatchDir(copySet set.Set, javaProject *JavaProject, patchOutPath string) error
- type Classes
- type ClasspathEntry
- type Component
- type Configuration
- type Content
- type DependentModule
- type DeploymentDescriptor
- type Descriptors
- type EclipseNormalProjectConfig
- type EclipseProject
- type EclipseWebProjectConfig
- type Facet
- type IDE
- type IdeaProject
- type IdeaProjectConfig
- type JarDirectory
- type JavaProject
- type Library
- type OrderEntry
- type Output
- type Property
- type Root
- type SourceFolder
- type SourceRoots
- type WebModule
- type WebResource
- type WebRoots
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPatchDir ¶
func ConvertPatchDir(copySet set.Set, javaProject *JavaProject, patchOutPath string) error
ConvertPatchDir 复制源文件到指定位置
Types ¶
type ClasspathEntry ¶
type Configuration ¶
type Configuration struct { Descriptors Descriptors `xml:"descriptors"` WebRoots WebRoots `xml:"webroots"` SourceRoots SourceRoots `xml:"sourceRoots"` }
type Content ¶
type Content struct { Url string `xml:"url,attr"` SourceFolders []SourceFolder `xml:"sourceFolder"` ExcludeFolders []SourceFolder `xml:"excludeFolders"` }
type DependentModule ¶
type DeploymentDescriptor ¶
type Descriptors ¶
type Descriptors struct {
DeploymentDescriptors []DeploymentDescriptor `xml:"deploymentDescriptor"`
}
type EclipseNormalProjectConfig ¶
type EclipseNormalProjectConfig struct { Classpath xml.Name `xml:"classpath"` ClasspathEntries []ClasspathEntry `xml:"classpathentry"` }
普通eclipse配置 对应.classpath文件
type EclipseProject ¶
type EclipseProject struct {
JavaProject
}
func (*EclipseProject) AnalysisProjectConfig ¶
func (e *EclipseProject) AnalysisProjectConfig() (*JavaProject, error)
type EclipseWebProjectConfig ¶
type EclipseWebProjectConfig struct { ProjectModuleId string `xml:"id,attr"` ProjectVersion string `xml:"project-version,attr"` WebModule WebModule `xml:"wb-module"` }
eclipse Web配置 对应.settings/org.eclipse.wst.common.component文件
type Facet ¶
type Facet struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` Configuration Configuration `xml:"configuration"` }
type IDE ¶
type IDE interface { // AnalysisProjectConfig 解析项目配置 AnalysisProjectConfig() (*JavaProject, error) }
func GetInstance ¶
type IdeaProject ¶
type IdeaProject struct { JavaProject ProjectConfigPath string }
func (*IdeaProject) AnalysisProjectConfig ¶
func (idea *IdeaProject) AnalysisProjectConfig() (*JavaProject, error)
type IdeaProjectConfig ¶
type IdeaProjectConfig struct { Module xml.Name `xml:"module"` Type string `xml:"type,attr"` Version string `xml:"version,attr"` Components []Component `xml:"component"` }
idea配置 对应后缀为iml的文件
type JarDirectory ¶
type JavaProject ¶
type Library ¶
type Library struct { Name string `xml:"name,attr"` Classes Classes `xml:"CLASSES"` Javadoc string `xml:"JAVADOC"` Sources string `xml:"SOURCES"` JarDirectories []JarDirectory `xml:"jarDirectory"` }
type OrderEntry ¶
type OrderEntry struct { Type string `xml:"type,attr"` Name string `xml:"name,attr"` Level string `xml:"level,attr"` Scope string `xml:"scope,attr"` ForTests string `xml:"forTests,attr"` ModuleName string `xml:"module-name,attr"` Library Library `xml:"library"` JdkName string `xml:"jdkName,attr"` JdkType string `xml:"jdkType,attr"` }
type SourceFolder ¶
type SourceRoots ¶
type SourceRoots struct {
Roots []Root `xml:"root"`
}
type WebModule ¶
type WebModule struct { DeployName string `xml:"deploy-name,attr"` WebResources []WebResource `xml:"wb-resource"` DependentModules []DependentModule `xml:"dependent-module"` Properties []Property `xml:"property"` }
type WebResource ¶
Click to show internal directories.
Click to hide internal directories.