This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Runs the FlexUnit task on the compiled test output. --> | |
<target name="run-flexunit" depends="compile-test"> | |
<flexunit swf="${test.compile.output}" | |
toDir="${test.bin.dir}" | |
haltonfailure="false" | |
verbose="true" | |
localTrusted="true" | |
failureproperty="flexunit.failed" | |
timeout="5000" /> | |
</target> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Compiles the unit tests and runs the FlexUnit task to analyze the results. --> | |
<target name="run-test" depends="init,run-flexunit"> | |
<if> | |
<equals arg1="${flexunit.failed}" arg2="true" /> | |
<then> | |
<fail message="Unit tests failed." /> | |
</then> | |
</if> | |
</target> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Compiles the SWF and launches a browser for debugging. --> | |
<target name="run-debug" depends="compile-swf"> | |
<if> | |
<equals arg1="${os.name}" arg2="Mac OS X" /> | |
<then> | |
<exec executable="open" spawn="true"> | |
<arg line="-a ${env.DEFAULT_BROWSER} ${debug.compile.output}" /> | |
</exec> | |
</then> | |
<else> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Builds the project --> | |
<target name="build" depends="run-test,compile-swf"> | |
<echo>Build complete.</echo> | |
</target> | |
<!-- Build and deploy the project to testing context --> | |
<target name="deploy-testing" depends="build"> | |
<echo>SWF compiled and ready for deployment to a testing environment.</echo> | |
</target> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.DisplayObject; | |
import flash.utils.getQualifiedClassName; | |
import nl.demonsters.debugger.MonsterDebugger; | |
/** | |
* The Out class is the application's logger console proxy. All messages are sent to a running | |
* instance of De MonsterDebugger. | |
* @see http://www.demonsterdebugger.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.nobien.cloudfoundry.example.config; | |
import java.util.Properties; | |
import org.cloudfoundry.runtime.env.CloudEnvironment; | |
import org.cloudfoundry.runtime.env.CloudEnvironmentPropertiesFactoryBean; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.ApplicationContextInitializer; | |
import org.springframework.core.env.ConfigurableEnvironment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.nobien.cloudfoundry.example.config.database | |
import java.net.UnknownHostException; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import settings | |
from django.core.management.base import BaseCommand | |
from subprocess import call | |
class Command(BaseCommand): | |
def _is_project_app(self, app_name): | |
return not 'django' in app_name and not 'south' in app_name | |
def handle(self, *args, **options): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os, web, sys | |
sys.path.append(os.path.dirname(__file__)) | |
urls = ( | |
r'/', 'Home', | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def before_filter(*args, **kwargs): | |
print "before" | |
def after_filter(*args, **kwargs): | |
print "after" | |
class Controller(object) | |
@RequestFilter(before=[before_filter], after=[after_filter]) | |
def GET(self): | |
return "Hello!" |