This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

scripting CCS6 on Linux and -ccs.autoImport

I'm automating a project build (using Buildbot) on Linux) and I'm running afoul the 'import' project stage. The following two commands work the first time the project builds but if rerun, the project exists so the first command throws an error.

/opt/ti/ccsv6/eclipse/eclipse -noSplash -data . -ccs.location path/to/myproject -application com.ti.ccstudio.apps.projectImport
/opt/ti/ccsv6/eclipse/eclipse -noSplash -data . -application com.ti.ccstudio.apps.projectBuild -ccs.buildType full -ccs.projects myproject

I've tried to implement the -ccs.autoImport option but cannot determine what the other arguments should be. Trying various combinations of the above I either get a usage message or 'myproject not found' kinds of messages. Given these arguments what would be the command line to eliminate the first command and just 'autoImport' the project. (Here I'm assuming that I can run that command repeatedly and it will always execute the build, even if it has 'autoImported' the project on a previous run.

I'm also open to alternatives such as deleting the project (but I found no such option listed on 

Another possibility would be to just delete whatever file gets created when the project is imported (assuming it is a file that gets created.)

Of course I'm open to other operations as well as long as they can be scripted. In other words, I'm looking for a command or sequence of commands that can be run repeatedly and will successfully build the project as it exists when cloned from Bitbucket. 

If convenient, I could put these files in a Makefile that would detect when the project import had been already performed and skip that step. I would need to know how to detect that the import had already been performed.

Thanks!

  • Hank Barta said:
    I would need to know how to detect that the import had already been performed.

    Looking at the workspace when projects are imported using the CCS 6.1.3 GUI, the workspace .metadata\.plugins\org.eclipse.core.resources\.projects directory contains a sub-directory for each project which has been imported into the workspace.

    i.e. maybe the makefile could check if <workspace_root_dir>\.metadata\.plugins\org.eclipse.core.resources\.projects\<project_name> exists as way of checking if the project has already been imported.

    [Not sure if the use of the .metadata\.plugins\org.eclipse.core.resources\.projects is "stable" or may change when CCS updates to a new version of Eclipse]

  • Hi Chester,

    Thanks for the info. I had hoped to be able to reply "I tried it and it solved my problem." Unfortunately unrelated problems have blocked my progress on this. Nevertheless, I'm optimistic that it will help.

    thanks,

    hank