Skip to content

Commit

Permalink
Latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHeap2 committed Dec 16, 2020
1 parent 67e580a commit eb0c957
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
"${workspaceFolder}/workspace/workspace.code-workspace"
]
},
{
"name": "Extension test ablunit",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"D:/workspaces/nickheap2/ablunit-mods/ablunit-mods"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
Expand Down
20 changes: 19 additions & 1 deletion src/AntBuildFileProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module.exports = class AntBuildFileProvider {
return resolve(this.buildFiles)
}

// loop workspace folders
for (const workspaceFolder of this.workspaceFolders) {
const workspaceFolderPath = workspaceFolder.uri.fsPath
try {
Expand All @@ -92,11 +93,28 @@ module.exports = class AntBuildFileProvider {
} catch (error) {
messageHelper.showErrorMessage(`Error reading ${buildFilename} !`)
// return reject(new Error('Error reading build.xml!: ' + error))

var errorFile = {
buildFilename: buildFilename,
fullBuildFilename: fullBuildFilename,
projectDetails: {},
buildTargets: [],
buildSourceFiles: [],
errorMessage: 'Error reading file!'
}
this.buildFiles.push(errorFile)

continue
}

try {
var buildFile = { buildFilename: buildFilename, fullBuildFilename: fullBuildFilename, projectDetails: {}, buildTargets: [], buildSourceFiles: [] }
var buildFile = {
buildFilename: buildFilename,
fullBuildFilename: fullBuildFilename,
projectDetails: {},
buildTargets: [],
buildSourceFiles: []
}
buildFile.projectDetails = this.BuildFileParser.getProjectDetails(buildFileObj)

var [buildTargets, buildSourceFiles] = await this.BuildFileParser.getTargets(fullBuildFilename, buildFileObj, [], [])
Expand Down
13 changes: 0 additions & 13 deletions src/BuildFileParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,6 @@ module.exports = class BuildFileParser {
return reject(new Error('Error parsing build.xml!:' + err))
} else {
return resolve(result)
// project = this.setParentValues(result.project)

// var root = {
// id: 'build.xml',
// contextValue: 'antFile',
// filePath: buildXml,
// fileName: 'build.xml'
// }
// if (project.$.name) {
// root.project = project.$.name
// }

// resolve([root])
}
})
})
Expand Down
4 changes: 4 additions & 0 deletions workspace/workspace.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"name": "dist",
"path": "..\\dist"
},
{
"name": "ablunit-mods",
"path": "..\\..\\ablunit-mods\\ablunit-mods"
},
{
"name": "test",
"path": "..\\test"
Expand Down

1 comment on commit eb0c957

@sflynn850
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excited about this update!

Please sign in to comment.