Assets ist bereits als Objekt Assets definiert
Ich führe erweiterte Tests für die Funktion "Teilprojekt abspielen" durch, wie hier beschrieben:http://www.playframework.com/documentation/2.0/SBTSubProjects. Aber ich erhalte den Fehler:
Assets is already defined as object Assets
Beispielanwendung auf github gehostet:https://github.com/adis-me/PlayStrap
Ich habe für meine Teilprojekte einen Asset Controller definiert, wie hier beschrieben:Asset Controller-Beschreibung, auch für das Hauptprojekt, aber der Fehler taucht immer wieder auf. Was ist los mit meinem Projekt?
Regler
package com.company.playstrap.controllers;
import controllers.AssetsBuilder;
public class Assets {
public static controllers.AssetsBuilder delegate = new AssetsBuilder();
}
Routendatei
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET / com.company.playstrap.controllers.Application.index()
# Include sub projects
-> /common common.Routes
-> /admin admin.Routes
-> /website website.Routes
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file com.company.playstrap.controllers.Assets.delegates.at(path="/public", file)