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!