Skip to content

Instantly share code, notes, and snippets.

@juven
Created August 14, 2009 05:30
Show Gist options
  • Save juven/167660 to your computer and use it in GitHub Desktop.
Save juven/167660 to your computer and use it in GitHub Desktop.
/*
* DefaultStaticResource resource = new DefaultStaticResource( getClass().getResource(
* "/static/js/nexus-user-account-plugin-all.js" ), "/js/repoServer/nexus-user-account-plugin-all.js",
* "application/x-javascript" );
*/
try
{
DefaultStaticResource resource = new DefaultStaticResource(
new File( "/home/juven/js/nexus-user-account-plugin-all.js" ).toURL(),
"/js/repoServer/nexus-user-account-plugin-all.js",
"application/x-javascript" );
result.add( resource );
}
catch ( Exception e )
{
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment