docs: @SuppressWarnings( "unchecked" )
      protected void collectProjectArtifactsAndClasspath( List<Artifact> artifacts, List<File> theClasspathFiles )
      {
  
          if ( "compile".equals( classpathScope ) )
          {
              artifacts.addAll( project.getCompileArtifacts() );
              theClasspathFiles.add( new File( project.getBuild().getOutputDirectory() ) );
          }
          else if ( "test".equals( classpathScope ) )
          {
              artifacts.addAll( project.getTestArtifacts() );
              theClasspathFiles.add( new File( project.getBuild().getTestOutputDirectory() ) );
              theClasspathFiles.add( new File( project.getBuild().getOutputDirectory() ) );
          }
          else if ( "runtime".equals( classpathScope ) )
          {
              artifacts.addAll( project.getRuntimeArtifacts() );
              theClasspathFiles.add( new File( project.getBuild().getOutputDirectory() ) );
          }
          else if ( "system".equals( classpathScope ) )
          {
              artifacts.addAll( project.getSystemArtifacts() );
          }
          else
          {
              throw new IllegalStateException( "Invalid classpath scope: " + classpathScope );
          }
  
          getLog().debug( "Collected project artifacts " + artifacts );
          getLog().debug( "Collected project classpath " + theClasspathFiles );
      }