Subversion Repositories SmartDukaan

Rev

Rev 37491 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37491 Rev 37726
Line 32... Line 32...
32
    	logger.warn("Invalid key")
32
    	logger.warn("Invalid key")
33
    }
33
    }
34
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
34
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
35
		entry( key: "profile", value: environment)
35
		entry( key: "profile", value: environment)
36
	}
36
	}
-
 
37
	// Sentry/GlitchTip reports ONLY from a deliberate staging/prod build, and is
-
 
38
	// labelled with that environment. A plain local build leaves the committed
-
 
39
	// enabled=false in place, so a developer's laptop cannot post to the live board.
-
 
40
	ant.propertyfile( file: "src/main/resources/sentry.properties"){
-
 
41
	    entry( key: "enabled", value: (environment == "dev" ? "false" : "true"))
-
 
42
	    entry( key: "environment", value: environment)
-
 
43
	}
37
	logger.info("Build is being build by "+environment)
44
	logger.info("Build is being build by "+environment)
38
}
45
}
39
 
46
 
40
tasks.build.doLast(){
47
tasks.build.doLast(){
41
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
48
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
42
		entry( key: "profile", value: "dev")
49
		entry( key: "profile", value: "dev")
43
	}
50
	}
-
 
51
	ant.propertyfile( file: "src/main/resources/sentry.properties"){
-
 
52
	    entry( key: "enabled", value: "false")
-
 
53
	    entry( key: "environment", value: "dev")
-
 
54
	}
44
}
55
}
45
 
56
 
46
 
57
 
47
dependencies {
58
dependencies {
48
    // Ships ERROR-level log events to GlitchTip (self-hosted, Sentry protocol).
59
    // Ships ERROR-level log events to GlitchTip (self-hosted, Sentry protocol).