Jody Garnett ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3 ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) / Task ( https://osgeo-org.atlassian.net/browse/GEOS-10466?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) GEOS-10466 ( https://osgeo-org.atlassian.net/browse/GEOS-10466?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) Migrate resources from src/main/java to src/main/resources ( https://osgeo-org.atlassian.net/browse/GEOS-10466?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) Issue Type: Task Assignee: Unassigned Created: 18/Apr/22 9:12 AM Priority: Medium Reporter: Jody Garnett ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3 ) Making a note of this here, as it was a new one for me: * IntelliJ marks folders ( https://www.jetbrains.com/help/idea/content-roots.html#configure-folders ) as sources, generated sources, test sources, generated test sources, resources, test resources, * We have files such as gs-main *src/test/java/org.vfny/geoserver/util/valid.sld* that fail to load when running a test in InteliJ … because *srs/test/java* is a test resources folder and will not be scanned for resources! * this causes testValid() to fail, as null is returned (valid.sld cannot be found) public void testValid() throws Exception { SLDValidator validator = new SLDValidator(); List errors = validator.validateSLD(getClass().getResourceAsStream("valid.sld")); // showErrors(errors); assertTrue(errors.isEmpty()); } Wild I think I have usually done a maven build first which copies such files to *target/classes* … References: * https://www.jetbrains.com/help/idea/content-roots.html * https://stackoverflow.com/questions/26328040/intellij-idea-getclass-getresource-return-null ( https://osgeo-org.atlassian.net/browse/GEOS-10466#add-comment?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10466#add-comment?atlOrigin=eyJpIjoiZGY2NjQ0YjBhZTQ3NDk5NWEwMWQ0ZDAzMDAzZTgxN2EiLCJwIjoiaiJ9 ) Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100198- sha1:943baf4 )
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel