blob: 3f894ae3102992e7cb30e5751d2440d1d5ac1c70 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Converting a Java project to an AspectJ project
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<h1>
Converting a Java project to an AspectJ project
</h1>
<p>
To convert a Java project to an AspectJ project right click on that project, then select
<strong>Convert to AspectJ Project</strong>. This will add the AspectJ nature to that
project and replace the Java builder with the AspectJ builder. It will also add the
AspectJ runtime library, aspectjrt.jar, to the classpath.
</p>
<p>
To convert an AspectJ project back to a Java project right click on that project,
then select <strong>AspectJ Tools &gt; Remove AspectJ Nature</strong>. This will remove the AspectJ nature from that
project and replace the AspectJ builder with the Java builder. It will also remove the
AspectJ runtime from the classpath.
<p>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159"> <br>
<a href="../concepts/projects.htm">AspectJ projects</a><br>
<a href="../concepts/builder.htm">AspectJ builder</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br>
<a href="ajelements.htm">Creating AspectJ elements</a><br>
<a href="newajproject.htm">Creating a new AspectJ project</a><br>
<a href="convertpluginproject.htm">Converting a plug-in project to an AspectJ project</a><br>
<a href="newaspect.htm">Creating a new aspect</a>
</p>
</body>
</html>