     .pipe(ngmin())
     .pipe(uglify())
     .pipe(concat('app.js'))
-    .pipe gulp.dest(target)
+    .pipe(gulp.dest(targets.gulp))
+    .pipe(gulp.dest(targets.appengineDevServer))
 
 gulp.task 'less', ->
   gulp.src(sources.less)
     .pipe(less())
     .pipe(concat('app.css'))
-    .pipe gulp.dest(target)
+    .pipe(gulp.dest(targets.gulp))
+    .pipe(gulp.dest(targets.appengineDevServer))
 
 gulp.task 'static', ->
   gulp.src(sources.static)
-    .pipe gulp.dest(target)
+    .pipe(gulp.dest(targets.gulp))
+    .pipe(gulp.dest(targets.appengineDevServer))
 
 gulp.task 'default', ['clean'], ->
   gulp.start 'bower', 'coffee', 'less', 'static'


gulp.task 'server', ['watch'], ->
  connect.server
    root: target
    port: 8888
    livereload: true

gulp.task 'clean', (cb) -> del target, cb

  less:   'src/main/less/**/*'
  static: 'src/main/static/**/*'

targets =
  gulp: 'src/main/webapp/'
  appengineDevServer: 'target/webapp/'

gulp.task 'bower', ->
  bower.commands.install().on 'end', (installed) ->
