Skip to content
Snippets Groups Projects
Select Git revision
  • e8ec869a8f82792d111a47ab551337573e2db96c
  • develop default protected
  • master protected
  • rodin2
  • rodin3
  • feature/theory_plugin
  • feature/multiview
  • csp
  • feature/newcore
  • feature/csp
  • 3.0.11
  • 3.0.8
  • 3.0.5
  • 2.4.1
  • 2.3.3
  • 2.3.2
  • 2.3.1
  • 2.3.0_fix1
  • 2.3.0
19 results

build.gradle

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    build.gradle 1.05 KiB
    apply plugin: 'base'
    
    deploy <<{
    	
    	content = new File("${project.name}/META-INF/MANIFEST.MF").getText("UTF-8") 
    
    	 
    
    	printFileLine = { 
    		if(  it ==~ /Bundle-Version.+qualifier/ ){
    			versionNumber = it.substring(16) // possibile error: cuts off first 16 chars 
    			
    			/*	Version Number is taken from Bundle-Version in Manifest.MF
    			*	If there is no Bundle-Version or the versionnumber needs to
    			*	be taken from a different key word, please change the
    			*	regular expression and the substring above
    			*/
    			
    		}
    		
    		if(  it ==~ /Bundle-SymbolicName:.+/ ){
    			artifactId = it.substring(21)
    			artifactId = artifactId.replace(";singleton:=true",'')
    		}
    		/*	Artifact ID is taken from Bundle-SymbolicName minus the
    		*	16 chars ';singleton:=true'
    		*/
    	}
    	
    	content.eachLine( printFileLine )
    	
    	
    	println artifactId
    	println "\t"+versionNumber
    	
    	def f = new File(artifactId+'/pom.xml') 
    	f.delete()
    	f << start()+elder()+repos()+artifact(artifactId, versionNumber)+end()
    	/*	
    	*	old pom.xml files are deleted and replaced by new auto generated Tycho pom.xml files
    	*/
    	
    }