Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing the name of the packages, to use maven #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ hs_err_pid*
# IntelliJ IDEA
.idea

*.csv
*.csv

target/

*.iml
27 changes: 0 additions & 27 deletions TestFileDetector.iml

This file was deleted.

5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>edu.rit.se.testsmells</groupId>
<groupId>edu.rit.se.testfiledetector</groupId>
<artifactId>TestFileDetector</artifactId>
<version>0.1</version>
<version>0.2</version>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import entity.ClassEntity;
package edu.rit.se.testfiledetector;

import java.io.IOException;
import java.nio.file.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import entity.ClassEntity;
package edu.rit.se.testfiledetector;

import edu.rit.se.testfiledetector.entity.ClassEntity;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package edu.rit.se.testfiledetector;

import com.opencsv.CSVWriter;
import entity.ClassEntity;
import entity.MethodEntity;
import edu.rit.se.testfiledetector.entity.ClassEntity;
import edu.rit.se.testfiledetector.entity.MethodEntity;

import java.io.FileWriter;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package edu.rit.se.testfiledetector;

import com.github.javaparser.JavaParser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.ImportDeclaration;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.comments.Comment;
import com.github.javaparser.ast.visitor.VoidVisitorAdapter;
import entity.ClassEntity;
import entity.MethodEntity;
import edu.rit.se.testfiledetector.entity.ClassEntity;
import edu.rit.se.testfiledetector.entity.MethodEntity;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package edu.rit.se.testfiledetector;

import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package entity;
package edu.rit.se.testfiledetector.entity;

import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class ClassEntity {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package entity;
package edu.rit.se.testfiledetector.entity;

public class MethodEntity {
private String methodName;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: Main
Main-Class: edu.rit.se.testfiledetector.Main