Skip to content

Conversation

@planthaber
Copy link
Member

Gerneration of directory pages relied on autoproj v1.

Did my best to make it running with autoproj2, still not finished though:

  • Had to idea how to use Autoproj::CLI::InspectionTool.initialize_and_load([])
  • Therefore had to check if loader.available_types != nil aroung tybe handling code (inner code not touched)

@doudou
Copy link
Member

doudou commented Mar 17, 2017

Autoproj::CLI::InspectionTool.initialize_and_load([])

It is an instance method, not a class method. The best is to create a workspace object and run the load methods on it

ws = Autoproj::Workspace.new(workspace_dir)
ws.setup
ws.load_package_sets # possibly with mainline: 'name of mainline'
ws.setup_all_package_directories

Would make sense to have a #setup_and_load method on Autoproj::Workspace (hint, hint ...). CLI::InspectionTool should only be used as a base class if you intend to create a CLI extension to autoproj.

Therefore had to check if loader.available_types != nil

No relationship. loader is an OroGen::Loaders::PkgConfig

Use #each_available_type_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants