The script works well on the latest milestone, but I get an error when trying to run on stable 0.1.2 version.
‘ERROR: Error at line 3: No such property: GsonTools for class: Script4’
Any suggestions? Alternatively:
- is there a way to open a project created on version 0.1.2 on 0.2.10?
- or, is there a way to transfer an annotation from version 0.1.2 to 0.2.10?
This is the script which works on version 2 but not 1:
def annotations = getAnnotationObjects()
boolean prettyPrint = true
def gson = GsonTools.getInstance(prettyPrint)
def name = getProjectEntry().getImageName() + ‘.json’
def path = buildFilePath(PROJECT_BASE_DIR)
path = buildFilePath(path, name)
new File(path).text = gson.toJson(annotations)