Menu

#3 classycle ant tasks could support more fileset types

open
nobody
None
5
2012-09-22
2012-02-12
Tom Denley
No

The ant tasks only support a nested FileSet at present. In order to run checks against Jar resources, it needs to support nested ant ResourceCollections. This patch allows for that.

I was unable to get the project to build/run locally, so the unit test in this patch may need tweaking before it will run.

Discussion

  • Tom Denley

    Tom Denley - 2012-02-12

    support for zipfileset in ant tasks

     
  • Franz-Josef Elmer

    Hi Tom

    Thanks for the patch. Unfortunately it doesn't work. The first problem is that the new test DependencyCheckingTaskTest.testEmbeddedDefinitionsFromJar() failed. When running the debugger I found that in line 114 of ClassycleTask.java the invocation of getIncludedFiles() returned an empty array. I would have expected it returned all class file paths inside the JAR file. But if it would returned these paths it wouldn't help because in Parser.createClassFiles() it is assumed that the paths are paths in the file system and not in a ZIP or JAR file. Did you forget to add additional source code in the patch?

    Regards
    Franz-Josef Elmer

     
  • Franz-Josef Elmer

    I've just released version 1.4.1 with our patch. But I had to modifiy ClassycleTask.java and Parser class in order to be able to work. Also the target testEmbeddedDefinitionsFromJar had an error.

     
  • Tom Denley

    Tom Denley - 2012-09-10

    Thanks for working on this, it had slipped off my radar. I realised shortly after submitting the patch that classycle makes assumptions about classes being on the file path, rather than obtaining them through a classloader, which would understand resources in jars and zips. I hope that you didn't have to go to too much effort to get this working.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.