Ich mache erweiterte Tests für das Play Subproject Feature, wie hier beschrieben: http://www.playframework.com/documentation/2.0/SBTSubProjects. Aber ich bin immer die Fehlermeldung:Assets sind bereits als Objekt definiert Assets
Assets is already defined as object Assets
Beispielanwendung auf GitHub: https://github.com/adis-me/PlayStrap
ich einen Asset-Controller für meine Teilprojekte definiert habe, wie hier beschrieben: Asset Controller description, auch für das Hauptprojekt, aber der Fehler hält Aufspringen. Was ist falsch an meinem Projekt?
-Controller
package com.company.playstrap.controllers;
import controllers.AssetsBuilder;
public class Assets {
public static controllers.AssetsBuilder delegate = new AssetsBuilder();
}
Routen Datei
# 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)
Das bedeutet, dass alle (Reversed-Routing-Sachen) in Aussicht geschrieben werden muss wie: '@ routes.Assets.asset (" someAss ")'? Ist dieser Fehler behoben, kann ich keinen Fehlerbericht für dieses Problem finden ... – adis